Skip to content

Commit

Permalink
Ignore gosec false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Dec 9, 2024
1 parent 07b13f2 commit a94db8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NumberFromName(device Device, input string) (uint, error) {
return 0, errInvalidInput
}

return uint(number) + 1, nil
return uint(number) + 1, nil // #nosec: Known input!
}

// NameFromNumber returns the corresponding input name for the input number.
Expand Down

0 comments on commit a94db8d

Please sign in to comment.