mirror of
https://github.com/bettercap/bettercap
synced 2025-07-29 19:20:00 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
8825ecb8db
commit
35cdc59e55
1 changed files with 2 additions and 4 deletions
|
@ -61,13 +61,11 @@ func (t *Ticker) Configure() error {
|
||||||
|
|
||||||
if err, commands = t.StringParam("ticker.commands"); err != nil {
|
if err, commands = t.StringParam("ticker.commands"); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
} else if err, period = t.IntParam("ticker.period"); err != nil {
|
||||||
t.Commands = session.ParseCommands(commands)
|
|
||||||
|
|
||||||
if err, period = t.IntParam("ticker.period"); err != nil {
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t.Commands = session.ParseCommands(commands)
|
||||||
t.Period = time.Duration(period) * time.Second
|
t.Period = time.Duration(period) * time.Second
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue