mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2025-10-14 04:28:51 +02:00
fix: quality value validation
This commit is contained in:
@@ -55,7 +55,7 @@ func WatchCommand(_ *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
quality := uint8(viper.GetUint16("quality"))
|
||||
if quality <= 0 {
|
||||
if quality <= 0 || quality > 100 {
|
||||
return fmt.Errorf("invalid quality value")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user