clean(main): remove return after fatal error
This commit is contained in:
parent
4c8d357fbf
commit
8f992fc17e
@ -89,7 +89,6 @@ func main() {
|
|||||||
volume, _, err := ctx.DoContext.GetVolume(volumeID)
|
volume, _, err := ctx.DoContext.GetVolume(volumeID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
handleError(ctx, err, true)
|
handleError(ctx, err, true)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
snapshot, _, err := ctx.DoContext.CreateSnapshot(&godo.SnapshotCreateRequest{
|
snapshot, _, err := ctx.DoContext.CreateSnapshot(&godo.SnapshotCreateRequest{
|
||||||
@ -98,7 +97,6 @@ func main() {
|
|||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
handleError(ctx, err, true)
|
handleError(ctx, err, true)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info(fmt.Sprintf("Created Snapshot with Id %s from volume %s", snapshot.ID, volume.Name))
|
log.Info(fmt.Sprintf("Created Snapshot with Id %s from volume %s", snapshot.ID, volume.Name))
|
||||||
|
Loading…
Reference in New Issue
Block a user