Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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")
}