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 /attack_result.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 'attack_result.go')
| -rw-r--r-- | attack_result.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/attack_result.go b/attack_result.go index 112f2ca..42c4e1e 100644 --- a/attack_result.go +++ b/attack_result.go @@ -6,7 +6,6 @@ package trunks import ( "bytes" - "encoding/json" "errors" "fmt" "io" @@ -192,10 +191,3 @@ func (ar *AttackResult) load() (err error) { return ar.finish() } - -func (ar *AttackResult) pack() (b []byte, err error) { - ar.mtx.Lock() - b, err = json.Marshal(ar) - ar.mtx.Unlock() - return b, err -} |
