mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix: remove deprecation warnings when option unset (#6532)
Resolves #6531
This commit is contained in:
@@ -257,6 +257,10 @@ flags, and YAML configuration. The precedence is as follows:
|
||||
continue
|
||||
}
|
||||
|
||||
if opt.Value.String() == opt.Default {
|
||||
continue
|
||||
}
|
||||
|
||||
warnStr := opt.Name + " is deprecated, please use "
|
||||
for i, use := range opt.UseInstead {
|
||||
warnStr += use.Name + " "
|
||||
|
||||
Reference in New Issue
Block a user