diff options
Diffstat (limited to 'magefile.go')
-rw-r--r-- | magefile.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/magefile.go b/magefile.go index 8ab594a02..883f96620 100644 --- a/magefile.go +++ b/magefile.go @@ -122,7 +122,7 @@ func TestRace() error { // Run gofmt linter func Fmt() error { - if isGoTip() { + if !isGoLatest() { return nil } pkgs, err := hugoPackages() @@ -258,6 +258,6 @@ func CheckVendor() error { return nil } -func isGoTip() bool { - return strings.Contains(runtime.Version(), "devel") || strings.Contains(runtime.Version(), "1.10") +func isGoLatest() bool { + return strings.Contains(runtime.Version(), "1.10") } |