Fix metalinter issue

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
This commit is contained in:
Madhu Rajanna 2019-01-29 11:37:03 +05:30
parent 50ba8ed446
commit 03d93219d7
2 changed files with 3 additions and 4 deletions

View File

@ -237,7 +237,7 @@ func attachRBDImage(volOptions *rbdVolume, userID string, credentials map[string
moduleName = nbd moduleName = nbd
} }
_, found := waitForPath(volOptions.Pool, image, 1, useNBD) devicePath, found := waitForPath(volOptions.Pool, image, 1, useNBD)
if !found { if !found {
attachdetachMutex.LockKey(imagePath) attachdetachMutex.LockKey(imagePath)
@ -263,9 +263,8 @@ func attachRBDImage(volOptions *rbdVolume, userID string, credentials map[string
if err != nil { if err != nil {
return "", err return "", err
} }
devicePath, err = createPath(volOptions, userID, credentials)
} }
devicePath, err := createPath(volOptions, userID, credentials)
return devicePath, err return devicePath, err
} }

View File

@ -27,7 +27,7 @@ const (
PluginFolder = "/var/lib/kubelet/plugins" PluginFolder = "/var/lib/kubelet/plugins"
) )
// ForAllFunc stores metdata with identifier // ForAllFunc stores metadata with identifier
type ForAllFunc func(identifier string) error type ForAllFunc func(identifier string) error
// CachePersister interface implemented for store // CachePersister interface implemented for store