aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-22 20:13:57 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-22 20:14:40 +0300
commit7e946a07035caae6fd1622d588abc7872a3a8158 (patch)
tree4feed08d55cb096a8caaa5800b00e54922f4e279 /config
parentadee1ffcc414a2efbf36cc1a2ab6061714468588 (diff)
Fix golint warnings
Diffstat (limited to 'config')
-rw-r--r--config/config.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/config.go b/config/config.go
index 55601df..e11b17a 100644
--- a/config/config.go
+++ b/config/config.go
@@ -66,10 +66,9 @@ func (config *Config) Load() {
os.MkdirAll(config.HistoryDir, 0700)
os.MkdirAll(config.MediaDir, 0700)
return
- } else {
- fmt.Println("Failed to read config from", configPath)
- panic(err)
}
+ fmt.Println("Failed to read config from", configPath)
+ panic(err)
}
err = yaml.Unmarshal(data, &config)