Skip to content

Commit

Permalink
Merge pull request #131 from raharper/fix/linux-disk-add-partition-gp…
Browse files Browse the repository at this point in the history
…t-error-return-nil

fix: return err when addPartitionSetGPT fails
  • Loading branch information
hallyn authored Feb 14, 2024
2 parents 02b41ac + 36f914b commit 82804d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ func addPartitionSet(d disko.Disk, pSet disko.PartitionSet) error {
}
} else {
if err := addPartitionSetGPT(fp, d, pSet); err != nil {
return nil
return err
}
}

Expand Down

0 comments on commit 82804d0

Please sign in to comment.