Преглед на файлове

AvifSpeed value checker (#760)

As I understand valid values for `AvifSpeed` is 0-8, including 0 and 8. But the checker does not allow 0.
So here is fix
Aleksandr преди 3 години
родител
ревизия
36c73e3ea8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      config/config.go

+ 1 - 1
config/config.go

@@ -481,7 +481,7 @@ func Configure() error {
 		return fmt.Errorf("Png quantization colors can't be greater than 256, now - %d\n", PngQuantizationColors)
 	}
 
-	if AvifSpeed <= 0 {
+	if AvifSpeed < 0 {
 		return fmt.Errorf("Avif speed should be greater than 0, now - %d\n", AvifSpeed)
 	} else if AvifSpeed > 8 {
 		return fmt.Errorf("Avif speed can't be greater than 8, now - %d\n", AvifSpeed)