mirror of
https://github.com/containers/podman.git
synced 2025-10-18 03:33:32 +08:00
fix lint - drop else block
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -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_.-]*")
|
||||
)
|
||||
|
Reference in New Issue
Block a user