Skip to content

Commit 302bb33

Browse files
committed
Add comment on removeSettingWarning
1 parent ae166fd commit 302bb33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/setting/config_provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ func deprecatedSetting(rootCfg ConfigProvider, oldSection, oldKey, newSection, n
334334
// make linter happy when there is no deprecated setting at the moment
335335
var _ = deprecatedSetting
336336

337+
// removedSettingWarning is a warning about a setting that has already been removed, giving the user a last chance to fix their app.ini
337338
func removedSettingWarning(rootCfg ConfigProvider, oldSection, oldKey, newSection, newKey, version string) {
338339
if rootCfg.Section(oldSection).HasKey(oldKey) {
339340
LogStartupProblem(1, log.ERROR, "Removed: config option `[%s].%s` presents, please use `[%s].%s` instead because this setting has been removed in %s", oldSection, oldKey, newSection, newKey, version)

0 commit comments

Comments
 (0)