diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-02-08 20:31:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 12:31:38 +0000 |
commit | 8c6ffdac378654f9d2171ebdbc46becf1571f7fe (patch) | |
tree | 318fd4873700b766fe2940b4c027519419bab1b7 /models | |
parent | 98e7e3a5f07b8bc620e26bc1ab6f7a86bccbb7cb (diff) | |
download | gitea-8c6ffdac378654f9d2171ebdbc46becf1571f7fe.tar.gz gitea-8c6ffdac378654f9d2171ebdbc46becf1571f7fe.zip |
Remove unnecessary parameter (#29092)
The parameter extraConfigs has never been used anywhere. This PR just
removed it. It can be taken back once it's needed.
Diffstat (limited to 'models')
-rw-r--r-- | models/unittest/testdb.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/unittest/testdb.go b/models/unittest/testdb.go index 4c668ad04b..cb90c12f2b 100644 --- a/models/unittest/testdb.go +++ b/models/unittest/testdb.go @@ -44,12 +44,12 @@ func fatalTestError(fmtStr string, args ...any) { } // InitSettings initializes config provider and load common settings for tests -func InitSettings(extraConfigs ...string) { +func InitSettings() { if setting.CustomConf == "" { setting.CustomConf = filepath.Join(setting.CustomPath, "conf/app-unittest-tmp.ini") _ = os.Remove(setting.CustomConf) } - setting.InitCfgProvider(setting.CustomConf, strings.Join(extraConfigs, "\n")) + setting.InitCfgProvider(setting.CustomConf) setting.LoadCommonSettings() if err := setting.PrepareAppDataPath(); err != nil { |