You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2024. It is now read-only.
While preparing to duplicate an existing validation check like this one the thought hit me: Maybe it's not necessary to guard against empty strings as an input value from a user? It feels "wrong", but perhaps the config packages already have this responsibility?
// Verify that the user did not opt to set an empty string as the value,// otherwise we fail the config validation by returning an error.ifc.IsSetIgnoredIPAddressesFile() &&c.IgnoredIPAddressesFile() =="" {
returnfmt.Errorf("empty path to ignored ip addresses file provided")
}
For now I'm going ahead with duplicating the validation check, but it would be good to learn what the best practice for this is and apply it here (and elsewhere).