From 772128485a7e94932cd18b5e3a78d8cfb273e797 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Wed, 21 Feb 2018 09:23:43 +0100 Subject: Run gofmt -s with Go 1.10 See #4434 --- magefile.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'magefile.go') 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") } -- cgit v1.2.3