Incorporate Requested Changes

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2022-11-29 10:49:09 +01:00
parent c07dafabbd
commit e3043a7e7b

View File

@@ -107,22 +107,10 @@ func GetAnnotatedVariables(s interface{}) ([]ConfigField, []DeprecationField) {
if !ok {
continue
}
deprecationVersion, ok := field.Tag.Lookup("deprecationVersion")
if !ok {
deprecationVersion = ""
}
removalVersion, ok := field.Tag.Lookup("removalVersion")
if !ok {
removalVersion = ""
}
deprecationInfo, ok := field.Tag.Lookup("deprecationInfo")
if !ok {
deprecationInfo = ""
}
deprecationReplacement, ok := field.Tag.Lookup("deprecationReplacement")
if !ok {
deprecationReplacement = ""
}
deprecationVersion, _ := field.Tag.Lookup("deprecationVersion")
removalVersion, _ := field.Tag.Lookup("removalVersion")
deprecationInfo, _ := field.Tag.Lookup("deprecationInfo")
deprecationReplacement, _ := field.Tag.Lookup("deprecationReplacement")
if deprecationVersion != "" ||
removalVersion != "" ||
deprecationInfo != "" ||