Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Jan 14, 2023
1 parent e2d63de commit 5afb136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ func LoadFromExisting() {

// LoadAllowEmpty initializes setting options, it's also fine that if the config file (app.ini) doesn't exist
func LoadAllowEmpty() {
Cfg = loadFromConf(CustomConf, WritePIDFile, true, PIDFile,"")
Cfg = loadFromConf(CustomConf, WritePIDFile, true, PIDFile, "")
}

// LoadForTest initializes setting options for tests
func LoadForTest(extraConfigs ...string) {
Cfg = loadFromConf(CustomConf, WritePIDFile, true, PIDFile,strings.Join(extraConfigs, "\n"))
Cfg = loadFromConf(CustomConf, WritePIDFile, true, PIDFile, strings.Join(extraConfigs, "\n"))
if err := PrepareAppDataPath(); err != nil {
log.Fatal("Can not prepare APP_DATA_PATH: %v", err)
}
Expand Down

0 comments on commit 5afb136

Please sign in to comment.