resource/image: Fix "always false" condition

Found using gocritic linter.
This commit is contained in:
Iskander (Alex) Sharipov authored and Bjørn Erik Pedersen committed 2018-12-10 15:31:44 +01:00
1 parent c84f506f8e
commit 256418917c
1 file changed
+1 -1
+1 -1
View File
@@ -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' {