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

@ -575,7 +575,7 @@ func (ns *NodeServer) createTargetMountPath(ctx context.Context, mountPath strin
// Check if that mount path exists properly
notMnt, err := mount.IsNotMountPoint(ns.mounter, mountPath)
if err == nil {
return notMnt, err
return notMnt, nil
}
if !os.IsNotExist(err) {
return false, status.Error(codes.Internal, err.Error())