We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4105b12 commit e044d98Copy full SHA for e044d98
pkg/snclient/check_drivesize_windows.go
@@ -275,8 +275,7 @@ func (l *CheckDrivesize) setDeviceInfo(drive map[string]string) {
275
}
276
277
// drivePath needs to be in form 'X:\'
278
- drivePath, _ := drive["drive_or_id"]
279
- drivePath = strings.ToUpper(drivePath)
+ drivePath := strings.ToUpper(drive["drive_or_id"])
280
if !strings.HasSuffix(drivePath, "\\") {
281
drivePath += "\\"
282
0 commit comments