Skip to content

Commit e044d98

Browse files
Ahmet OeztuerkAhmet Oeztuerk
authored andcommitted
linter fix
1 parent 4105b12 commit e044d98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/snclient/check_drivesize_windows.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,7 @@ func (l *CheckDrivesize) setDeviceInfo(drive map[string]string) {
275275
}
276276

277277
// drivePath needs to be in form 'X:\'
278-
drivePath, _ := drive["drive_or_id"]
279-
drivePath = strings.ToUpper(drivePath)
278+
drivePath := strings.ToUpper(drive["drive_or_id"])
280279
if !strings.HasSuffix(drivePath, "\\") {
281280
drivePath += "\\"
282281
}

0 commit comments

Comments
 (0)