Skip to content

Commit

Permalink
Ignore errcheck: error return value of snapshot.Destroy is not checked
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Rodák <[email protected]>
  • Loading branch information
Honny1 committed Jul 8, 2024
1 parent 9dd25f9 commit f185be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/zfs/zfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (d *Driver) cloneFilesystem(name, parentName string) error {
}

if err != nil {
snapshot.Destroy(zfs.DestroyDeferDeletion)
_ = snapshot.Destroy(zfs.DestroyDeferDeletion)
return err
}
return snapshot.Destroy(zfs.DestroyDeferDeletion)
Expand Down

0 comments on commit f185be6

Please sign in to comment.