diff --git a/checkers/internal/lintutil/zero_value.go b/checkers/internal/lintutil/zero_value.go index d0c1badf2..4370f5818 100644 --- a/checkers/internal/lintutil/zero_value.go +++ b/checkers/internal/lintutil/zero_value.go @@ -74,9 +74,10 @@ func ZeroValueOf(typeExpr ast.Expr, typ types.Type) ast.Expr { case *types.Array, *types.Struct: return &ast.CompositeLit{Type: typeExpr} - } - return nil + default: + return nil + } } func isDefaultLiteralType(typ types.Type) bool {