Permalink
Browse files

resource/image: Fix "always false" condition

Found using gocritic linter.
  • Loading branch information...
Quasilyte authored and bep committed Dec 10, 2018
1 parent c84f506 commit 256418917c6642f7e5b3d3206ff4b6fa03b1cb28
Showing with 1 addition and 1 deletion.
  1. +1 −1 resource/image.go
@@ -376,7 +376,7 @@ func parseImageConfig(config string) (imageConfig, error) {
if err != nil {
return c, err
}
if c.Quality < 1 && c.Quality > 100 {
if c.Quality < 1 || c.Quality > 100 {
return c, errors.New("quality ranges from 1 to 100 inclusive")
}
} else if part[0] == 'r' {

0 comments on commit 2564189

Please sign in to comment.