hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 256418917c6642f7e5b3d3206ff4b6fa03b1cb28
parent c84f506f8ef1f2ca94ab96718a22ba6e290235ac
Author: Iskander (Alex) Sharipov <quasilyte@gmail.com>
Date:   Mon, 10 Dec 2018 17:31:44 +0300

resource/image: Fix "always false" condition

Found using gocritic linter.
Diffstat:
Mresource/image.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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' {