mirror of
https://github.com/coalaura/ffwebp.git
synced 2025-07-17 22:04:35 +00:00
cleanup
This commit is contained in:
@ -75,7 +75,6 @@ func main() {
|
|||||||
|
|
||||||
if err := app.Run(context.Background(), os.Args); err != nil {
|
if err := app.Run(context.Background(), os.Args); err != nil {
|
||||||
logx.Errorf("fatal: %v", err)
|
logx.Errorf("fatal: %v", err)
|
||||||
os.Exit(1)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ func (impl) Flags(flags []cli.Flag) []cli.Flag {
|
|||||||
Destination: &compression,
|
Destination: &compression,
|
||||||
Validator: func(value int) error {
|
Validator: func(value int) error {
|
||||||
if value < 0 || value > 3 {
|
if value < 0 || value > 3 {
|
||||||
return fmt.Errorf("invalid compression level: %q", value)
|
return fmt.Errorf("invalid compression level: %d", value)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user