mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
resource/image: Fix "always false" condition
Found using gocritic linter.
This commit is contained in:
parent
c84f506f8e
commit
256418917c
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ func parseImageConfig(config string) (imageConfig, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return c, err
|
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")
|
return c, errors.New("quality ranges from 1 to 100 inclusive")
|
||||||
}
|
}
|
||||||
} else if part[0] == 'r' {
|
} else if part[0] == 'r' {
|
||||||
|
|
Loading…
Reference in a new issue