summaryrefslogtreecommitdiff
path: root/src/pkg/go/ast/import.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/go/ast/import.go')
-rw-r--r--src/pkg/go/ast/import.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/go/ast/import.go b/src/pkg/go/ast/import.go
index 2d4f69aae..a68a4840f 100644
--- a/src/pkg/go/ast/import.go
+++ b/src/pkg/go/ast/import.go
@@ -20,7 +20,7 @@ func SortImports(fset *token.FileSet, f *File) {
break
}
- if d.Lparen == token.NoPos {
+ if !d.Lparen.IsValid() {
// Not a block: sorted by default.
continue
}