revid/revid.go: Replaced ParseInt with Atoi

This commit is contained in:
Frank Cui 2019-12-05 09:55:11 +10:30
parent 8fa9f7df48
commit 6e2dcc4b4d
1 changed files with 2 additions and 2 deletions

View File

@ -479,14 +479,14 @@ func (r *Revid) Update(vars map[string]string) error {
}
r.cfg.Input = v
case "Saturation":
s, err := strconv.ParseInt(value, 10, 0)
s, err := strconv.Atoi(value)
if err != nil {
r.cfg.Logger.Log(logger.Warning, pkg+"invalid saturation param", "value", value)
break
}
r.cfg.Saturation = int(s)
case "Brightness":
b, err := strconv.ParseUint(value, 10, 0)
b, err := strconv.Atoi(value)
if err != nil {
r.cfg.Logger.Log(logger.Warning, pkg+"invalid brightness param", "value", value)
break