aboutsummaryrefslogtreecommitdiffhomepage
path: root/magefile.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-02-21 09:23:43 +0100
committerBjørn Erik Pedersen <[email protected]>2018-02-21 09:59:33 +0100
commit772128485a7e94932cd18b5e3a78d8cfb273e797 (patch)
tree1d0f54b218927859cabd5bc62f32e94668450f10 /magefile.go
parentc2c4cb1f9f9ea9f05a9c9cf7123a17660208cad4 (diff)
downloadhugo-772128485a7e94932cd18b5e3a78d8cfb273e797.tar.gz
hugo-772128485a7e94932cd18b5e3a78d8cfb273e797.zip
Run gofmt -s with Go 1.10
See #4434
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go6
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")
}