mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
more lint driven refactoring
This commit is contained in:
parent
7919cda5ec
commit
0de6f3a76e
57 changed files with 168 additions and 241 deletions
|
@ -59,7 +59,7 @@ func (t *Ticker) Configure() error {
|
|||
var commands string
|
||||
var period int
|
||||
|
||||
if t.Running() == true {
|
||||
if t.Running() {
|
||||
return session.ErrAlreadyStarted
|
||||
} else if err, commands = t.StringParam("ticker.commands"); err != nil {
|
||||
return err
|
||||
|
@ -82,7 +82,7 @@ func (t *Ticker) Start() error {
|
|||
log.Info("Ticker running with period %.fs.", t.Period.Seconds())
|
||||
tick := time.NewTicker(t.Period)
|
||||
for range tick.C {
|
||||
if t.Running() == false {
|
||||
if !t.Running() {
|
||||
break
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue