This commit is contained in:
Kagami Hiiragi 2019-03-30 22:18:07 +03:00
parent e34aca40a3
commit 56bf6a5ce2
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ func Encode(w io.Writer, m image.Image, o *Options) error {
// } // }
} }
if o.Threads < 1 { if o.Threads < 1 {
// return OptionsError("bad threads number") return OptionsError("bad threads number")
} }
if o.Speed < MinSpeed || o.Speed > MaxSpeed { if o.Speed < MinSpeed || o.Speed > MaxSpeed {
return OptionsError("bad speed value") return OptionsError("bad speed value")