cleanup
This commit is contained in:
1 parent
fec767d11b
commit
c8f60623f3
11 files changed
+30
-21
No files matched your search
@@ -174,11 +174,11 @@ func (app *app) loop() {
|
||||
}()
|
||||
}
|
||||
|
||||
if gCustomConfig != "" {
|
||||
if _, err := os.Stat(gCustomConfig); !os.IsNotExist(err) {
|
||||
app.readFile(gCustomConfig)
|
||||
if gConfigPath != "" {
|
||||
if _, err := os.Stat(gConfigPath); !os.IsNotExist(err) {
|
||||
app.readFile(gConfigPath)
|
||||
} else {
|
||||
log.Printf("Config file does not exist: %s", err)
|
||||
log.Printf("config file does not exist: %s", err)
|
||||
}
|
||||
} else {
|
||||
for _, path := range gConfigPaths {
|
||||
|
||||
Reference in new issue
Block a user