diff options
author | Iskander (Alex) Sharipov <quasilyte@gmail.com> | 2018-12-10 17:31:44 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-10 15:31:44 +0100 |
commit | 256418917c6642f7e5b3d3206ff4b6fa03b1cb28 (patch) | |
tree | 77f66f996c3f704e99c6df10c679b6f98f4d2c05 /resource | |
parent | c84f506f8ef1f2ca94ab96718a22ba6e290235ac (diff) |
resource/image: Fix "always false" condition
Found using gocritic linter.
Diffstat (limited to 'resource')
-rw-r--r-- | resource/image.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resource/image.go b/resource/image.go index 0fdabf788..6dea4cbb8 100644 --- a/resource/image.go +++ b/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' { |