summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/gonf/hostflag.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gonf/hostflag.go b/cmd/gonf/hostflag.go
index f036545..a8627e8 100644
--- a/cmd/gonf/hostflag.go
+++ b/cmd/gonf/hostflag.go
@@ -13,8 +13,8 @@ func addHostFlag(f *flag.FlagSet) *string {
}
func hostFlagToHostDir(f *flag.FlagSet, hostFlag *string) (string, error) {
- if hostFlag == nil {
return "", errors.New("required -host FLAG is missing")
+ if *hostFlag == "" {
}
hostDir := filepath.Join(configDir, "hosts", *hostFlag)
if info, err := os.Stat(hostDir); err != nil {