Skip to content
This repository was archived by the owner on May 9, 2021. It is now read-only.

Commit 721e727

Browse files
avelinoandybons
authored andcommitted
golint: group declaration of variables in import.go
Change-Id: I247089a69943c43815460af733268675182fab56 GitHub-Last-Rev: 76a9d79 GitHub-Pull-Request: #359 Reviewed-on: https://go-review.googlesource.com/96155 Reviewed-by: Andrew Bonventre <andybons@golang.org>
1 parent c363707 commit 721e727

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

golint/import.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ import (
2222
"strings"
2323
)
2424

25-
var buildContext = build.Default
26-
2725
var (
28-
goroot = filepath.Clean(runtime.GOROOT())
29-
gorootSrc = filepath.Join(goroot, "src")
26+
buildContext = build.Default
27+
goroot = filepath.Clean(runtime.GOROOT())
28+
gorootSrc = filepath.Join(goroot, "src")
3029
)
3130

3231
// importPathsNoDotExpansion returns the import paths to use for the given

0 commit comments

Comments
 (0)