Skip to content

Commit

Permalink
Merge pull request #25 from feuerrot/hexchenhatdaeinenbugmitderlautst…
Browse files Browse the repository at this point in the history
…aerkegefunden

fix: logic bug in volume control
  • Loading branch information
feuerrot authored Feb 1, 2023
2 parents 82cc5e4 + fd231f5 commit a725a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (s *sb) setupHTTP() {
return
}

if vol < 0 && vol > 100 {
if vol < 0 || vol > 100 {
http.Error(w, fmt.Sprintf("number too small or too large: %s", strVol), http.StatusBadRequest)
return
}
Expand Down

0 comments on commit a725a3c

Please sign in to comment.