Skip to content

Commit

Permalink
Export Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Vieth committed Mar 3, 2019
1 parent ae75193 commit 804e79c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func process(filename string, src []byte, opt *Options, env *fixEnv) ([]byte, er

}
if opt.SimplifyAST {
simplify(file)
Simplify(file)
}

printerMode := printer.UseSpaces
Expand Down
2 changes: 1 addition & 1 deletion simplify.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func isBlank(x ast.Expr) bool {
return ok && ident.Name == "_"
}

func simplify(f *ast.File) {
func Simplify(f *ast.File) {
// remove empty declarations such as "const ()", etc
removeEmptyDeclGroups(f)

Expand Down

0 comments on commit 804e79c

Please sign in to comment.