From 8f992fc17eb68ae30bbddbcc2d10305f13f51f13 Mon Sep 17 00:00:00 2001 From: Yukine Date: Fri, 5 Feb 2021 02:46:18 +0100 Subject: [PATCH] clean(main): remove return after fatal error --- cmd/DigitalOceanSnapshotter/main.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/DigitalOceanSnapshotter/main.go b/cmd/DigitalOceanSnapshotter/main.go index be21fe8..41e3c70 100644 --- a/cmd/DigitalOceanSnapshotter/main.go +++ b/cmd/DigitalOceanSnapshotter/main.go @@ -89,7 +89,6 @@ func main() { volume, _, err := ctx.DoContext.GetVolume(volumeID) if err != nil { handleError(ctx, err, true) - return } snapshot, _, err := ctx.DoContext.CreateSnapshot(&godo.SnapshotCreateRequest{ @@ -98,7 +97,6 @@ func main() { }) if err != nil { handleError(ctx, err, true) - return } log.Info(fmt.Sprintf("Created Snapshot with Id %s from volume %s", snapshot.ID, volume.Name))