mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -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:
|
||||
i, err := strconv.Atoi(value)
|
||||
return err, i
|
||||
} else if p.Type == FLOAT {
|
||||
case FLOAT:
|
||||
i, err := strconv.ParseFloat(value, 64)
|
||||
return err, i
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue