Skip to content

Commit cf1133d

Browse files
Update disk/disk_windows.go
Co-authored-by: shirou <shirou.faw@gmail.com>
1 parent 7ebc85a commit cf1133d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

disk/disk_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func PartitionsWithContext(_ context.Context, _ bool) ([]PartitionStat, error) {
114114
partitionStats := []PartitionStat{}
115115

116116
// Get drives with drive letters (including remote drives, ex: SMB shares)
117-
drives, logicalDrivesErr := getLogicalDrives()
117+
drives, err := getLogicalDrives()
118118
if logicalDrivesErr != nil {
119119
return partitionStats, logicalDrivesErr
120120
}

0 commit comments

Comments
 (0)