Implement review suggestions
This commit is contained in:
@@ -76,7 +76,7 @@ func registerConfig() error {
|
|||||||
config.UnitAnnotation: "seconds",
|
config.UnitAnnotation: "seconds",
|
||||||
config.CategoryAnnotation: "General",
|
config.CategoryAnnotation: "General",
|
||||||
},
|
},
|
||||||
ValidationRegex: `^[1-9][0-9]{1,5}?$`,
|
ValidationRegex: `^[1-9][0-9]{1,5}$`,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ The format is: "protocol://ip:port?parameter=value¶meter=value"
|
|||||||
config.UnitAnnotation: "seconds",
|
config.UnitAnnotation: "seconds",
|
||||||
config.CategoryAnnotation: "Servers",
|
config.CategoryAnnotation: "Servers",
|
||||||
},
|
},
|
||||||
ValidationRegex: `^[1-9][0-9]{1,5}?$`,
|
ValidationRegex: `^[1-9][0-9]{1,5}$`,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user