From a26b5054738be9245087a89cd76fb8756ffbe098 Mon Sep 17 00:00:00 2001 From: alessio Date: Fri, 11 Aug 2017 22:24:18 +0200 Subject: [PATCH] golint --- settings/settings.go | 1 + watcher/main.go | 3 ++- watcher/utils.go | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/settings/settings.go b/settings/settings.go index 450b5c1..5f43106 100644 --- a/settings/settings.go +++ b/settings/settings.go @@ -6,6 +6,7 @@ import ( "time" ) +// realize hidden dir var Dir = ".realize/" // Settings defines a group of general settings diff --git a/watcher/main.go b/watcher/main.go index 79eb154..fd57bd8 100644 --- a/watcher/main.go +++ b/watcher/main.go @@ -59,6 +59,7 @@ type tool struct { name string } +// Cmds go supported type Cmds struct { Vet bool `yaml:"vet" json:"vet"` Fmt bool `yaml:"fmt" json:"fmt"` @@ -69,7 +70,7 @@ type Cmds struct { Run bool `yaml:"run" json:"run"` } -// Buildmode options +// Cmd buildmode options type Cmd struct { Status bool `yaml:"status" json:"status"` Args []string `yaml:"args,omitempty" json:"args,omitempty"` diff --git a/watcher/utils.go b/watcher/utils.go index 4509080..714688e 100644 --- a/watcher/utils.go +++ b/watcher/utils.go @@ -54,7 +54,6 @@ func getEnvPath(env string) string { path := filepath.SplitList(os.Getenv(env)) if len(path) == 0 { return "" - } else { - return path[0] } + return path[0] }