aboutsummaryrefslogtreecommitdiff
path: root/trunks.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-03-24 02:06:15 +0700
committerShulhan <ms@kilabit.info>2021-03-24 02:06:15 +0700
commit19eb62d2f744ea7a08e2e6393e82a67788c3e8ff (patch)
tree63aa56d280b22c4e0b2ddac38d7b46ce911e8382 /trunks.go
parent7035a7fb42b9054657f5a99bb479fd4722d8ae7c (diff)
downloadgorankusu-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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/trunks.go b/trunks.go
index 5fcd938..01f7938 100644
--- a/trunks.go
+++ b/trunks.go
@@ -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
}