From be9195cf320e4495f7061ba1d8c030148b97f114 Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Tue, 13 Oct 2020 12:18:14 +0530 Subject: [PATCH] rbd: remove false error condition check in checkSnapCloneExists Signed-off-by: Humble Chirammal --- internal/rbd/rbd_journal.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/rbd/rbd_journal.go b/internal/rbd/rbd_journal.go index ded614297..775a7987f 100644 --- a/internal/rbd/rbd_journal.go +++ b/internal/rbd/rbd_journal.go @@ -206,10 +206,6 @@ func checkSnapCloneExists(ctx context.Context, parentVol *rbdVolume, rbdSnap *rb } } - if err != nil { - return false, err - } - util.DebugLog(ctx, "found existing image (%s) with name (%s) for request (%s)", rbdSnap.SnapID, rbdSnap.RbdSnapName, rbdSnap.RequestName) return true, nil