diff options
| author | Shulhan <ms@kilabit.info> | 2021-03-24 02:06:15 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-03-24 02:06:15 +0700 |
| commit | 19eb62d2f744ea7a08e2e6393e82a67788c3e8ff (patch) | |
| tree | 63aa56d280b22c4e0b2ddac38d7b46ce911e8382 /trunks.go | |
| parent | 7035a7fb42b9054657f5a99bb479fd4722d8ae7c (diff) | |
| download | gorankusu-19eb62d2f744ea7a08e2e6393e82a67788c3e8ff.tar.xz | |
all: fix and update linter warnings
Check for error where it should and remove unused return and methods.
Diffstat (limited to 'trunks.go')
| -rw-r--r-- | trunks.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -555,10 +555,11 @@ func (trunks *Trunks) scanResultsDir() { } } -func (trunks *Trunks) workerAttackQueue() (err error) { +func (trunks *Trunks) workerAttackQueue() { logp := "workerAttackQueue" for rr := range trunks.attackq { + var err error trunks.Env.AttackRunning = rr rr.HttpTarget.PreAttack(rr) @@ -617,5 +618,4 @@ func (trunks *Trunks) workerAttackQueue() (err error) { trunks.Env.AttackRunning = nil } - return nil } |
