mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -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 {
|
||||
return err
|
||||
}
|
||||
t.Commands = session.ParseCommands(commands)
|
||||
|
||||
if err, period = t.IntParam("ticker.period"); err != nil {
|
||||
} else if err, period = t.IntParam("ticker.period"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
t.Commands = session.ParseCommands(commands)
|
||||
t.Period = time.Duration(period) * time.Second
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue