Fix all staticcheck errors that are not deprecations

This commit is contained in:
Jacalz
2025-09-17 22:39:36 +02:00
parent 08f335da44
commit ebc5b7e039
5 changed files with 15 additions and 22 deletions
+1 -3
View File
@@ -58,9 +58,7 @@ func init() {
return err
})
flag.Func("volume-adjust-pct", "adjusts volume up or down by the given percentage (positive or negative)", func(s string) error {
if strings.HasSuffix(s, "%") {
s = s[:len(s)-1]
}
s = strings.TrimSuffix(s, "%")
v, err := strconv.ParseFloat(s, 64)
VolumePctCLIArg = v
return err