fix lint - drop else block

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2020-01-08 13:57:54 +01:00
parent baba52c6b5
commit 0b53ff2902
4 changed files with 40 additions and 37 deletions

View File

@ -21,7 +21,7 @@ import (
var (
// NameRegex is a regular expression to validate container/pod names.
NameRegex = regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$")
NameRegex = regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$")
// RegexError is thrown in presence of an invalid container/pod name.
RegexError = errors.Wrapf(define.ErrInvalidArg, "names must match [a-zA-Z0-9][a-zA-Z0-9_.-]*")
)