mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
fix: fixes #379
This commit is contained in:
parent
24037bce47
commit
7447b9e0db
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ func (p ModuleParam) Validate(value string) (error, interface{}) {
|
||||||
case INT:
|
case INT:
|
||||||
i, err := strconv.Atoi(value)
|
i, err := strconv.Atoi(value)
|
||||||
return err, i
|
return err, i
|
||||||
} else if p.Type == FLOAT {
|
case FLOAT:
|
||||||
i, err := strconv.ParseFloat(value, 64)
|
i, err := strconv.ParseFloat(value, 64)
|
||||||
return err, i
|
return err, i
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue