Skip to content

Commit

Permalink
fix: error wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed May 2, 2024
1 parent 9e08062 commit e750fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/device/dev_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (t LinuxDevicesInfoGetter) GetMounts() (Devices, error) {
devices, err := readMountsFile(file)
if err != nil {
if cerr := file.Close(); cerr != nil {
return nil, fmt.Errorf("%w; %s", err, cerr)
return nil, fmt.Errorf("%w; %w", err, cerr)
}
return nil, err
}
Expand Down

0 comments on commit e750fc5

Please sign in to comment.