cleanup: resolves gocritic linter issues

This commit resolves gocritic linter errors.

Updates: #2250

Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
Yati Padia
2021-07-07 17:11:23 +05:30
committed by mergify[bot]
parent dd0884310f
commit ffab37f44f
3 changed files with 3 additions and 3 deletions

View File

@ -621,7 +621,7 @@ var _ = Describe("RBD", func() {
// Prepare the rbd-nbd with command args
attachCmd := strings.ReplaceAll(mapCmd, "map", "attach --device /dev/nbd0")
m1 := regexp.MustCompile(`/keyfile-[0-9]* `)
m1 := regexp.MustCompile(`/keyfile-\d* `)
attachCmd = m1.ReplaceAllString(attachCmd, "/keyfile-test ")
e2elog.Logf("attach command to run after restart, attachCmd: %v", attachCmd)