diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-01-08 13:57:54 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-01-08 15:44:21 +0100 |
commit | 0b53ff290232f2854a5df09be91fed46d670f47e (patch) | |
tree | f01e8bba822588e6238c25cccb2a7feeb79c3ab0 /libpod/options.go | |
parent | baba52c6b585e6ca8c618c41072fcbb241a0b419 (diff) | |
download | podman-0b53ff290232f2854a5df09be91fed46d670f47e.tar.gz podman-0b53ff290232f2854a5df09be91fed46d670f47e.tar.bz2 podman-0b53ff290232f2854a5df09be91fed46d670f47e.zip |
fix lint - drop else block
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'libpod/options.go')
-rw-r--r-- | libpod/options.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/options.go b/libpod/options.go index 7ee9c9b56..031f4f705 100644 --- a/libpod/options.go +++ b/libpod/options.go @@ -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_.-]*") ) |