Skip to content

Commit 50ecae7

Browse files
authored
remove typo (go-gitea#31524)
1 parent dceadd2 commit 50ecae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/setting/config_provider.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,14 @@ func LogStartupProblem(skip int, level log.Level, format string, args ...any) {
326326

327327
func deprecatedSetting(rootCfg ConfigProvider, oldSection, oldKey, newSection, newKey, version string) {
328328
if rootCfg.Section(oldSection).HasKey(oldKey) {
329-
LogStartupProblem(1, log.ERROR, "Deprecation: config option `[%s].%s` presents, please use `[%s].%s` instead because this fallback will be/has been removed in %s", oldSection, oldKey, newSection, newKey, version)
329+
LogStartupProblem(1, log.ERROR, "Deprecated config option `[%s].%s` is present, please use `[%s].%s` instead. This fallback will be/has been removed in %s", oldSection, oldKey, newSection, newKey, version)
330330
}
331331
}
332332

333333
// deprecatedSettingDB add a hint that the configuration has been moved to database but still kept in app.ini
334334
func deprecatedSettingDB(rootCfg ConfigProvider, oldSection, oldKey string) {
335335
if rootCfg.Section(oldSection).HasKey(oldKey) {
336-
LogStartupProblem(1, log.ERROR, "Deprecation: config option `[%s].%s` presents but it won't take effect because it has been moved to admin panel -> config setting", oldSection, oldKey)
336+
LogStartupProblem(1, log.ERROR, "Deprecation: config option `[%s].%s` present but it won't take effect because it has been moved to admin panel -> config setting", oldSection, oldKey)
337337
}
338338
}
339339

0 commit comments

Comments
 (0)