Incorporate Requested Changes
Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
@@ -107,22 +107,10 @@ func GetAnnotatedVariables(s interface{}) ([]ConfigField, []DeprecationField) {
|
|||||||
if !ok {
|
if !ok {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
deprecationVersion, ok := field.Tag.Lookup("deprecationVersion")
|
deprecationVersion, _ := field.Tag.Lookup("deprecationVersion")
|
||||||
if !ok {
|
removalVersion, _ := field.Tag.Lookup("removalVersion")
|
||||||
deprecationVersion = ""
|
deprecationInfo, _ := field.Tag.Lookup("deprecationInfo")
|
||||||
}
|
deprecationReplacement, _ := field.Tag.Lookup("deprecationReplacement")
|
||||||
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 = ""
|
|
||||||
}
|
|
||||||
if deprecationVersion != "" ||
|
if deprecationVersion != "" ||
|
||||||
removalVersion != "" ||
|
removalVersion != "" ||
|
||||||
deprecationInfo != "" ||
|
deprecationInfo != "" ||
|
||||||
|
|||||||
Reference in New Issue
Block a user