From d8e443ab491442281e567f56b5f6ff7206cb3889 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 8 Dec 2020 15:10:22 +0100 Subject: [PATCH] cleanup: return error type in cleanupRBDImageMetadataStash() Signed-off-by: Niels de Vos --- internal/rbd/rbd_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rbd/rbd_util.go b/internal/rbd/rbd_util.go index 93b450b16..04f5146ed 100644 --- a/internal/rbd/rbd_util.go +++ b/internal/rbd/rbd_util.go @@ -1135,7 +1135,7 @@ func lookupRBDImageMetadataStash(path string) (rbdImageMetadataStash, error) { func cleanupRBDImageMetadataStash(path string) error { fPath := filepath.Join(path, stashFileName) if err := os.Remove(fPath); err != nil { - return fmt.Errorf("failed to cleanup stashed JSON data (%s): (%v)", fPath, err) + return fmt.Errorf("failed to cleanup stashed JSON data (%s): %w", fPath, err) } return nil