clean(main): remove return after fatal error

This commit is contained in:
Yukine
2021-02-05 02:46:18 +01:00
parent 4c8d357fbf
commit 8f992fc17e

View File

@@ -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))