Skip to content

Commit 74356e1

Browse files
committed
config: use ErrInvalidName
SA1019: types.RegexError is deprecated: use [ErrInvalidName] instead. Making linter happy. Signed-off-by: flouthoc <[email protected]>
1 parent 51bb71d commit 74356e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpod/define/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var (
1818
// constant, but Go won't let us do that.
1919
NameRegex = types.NameRegex
2020
// RegexError is thrown in presence of an invalid container/pod name.
21-
RegexError = types.RegexError
21+
RegexError = types.ErrInvalidName
2222
)
2323

2424
const (

0 commit comments

Comments
 (0)