Skip to content

Commit c83797b

Browse files
committed
Fix warnings reported by linters
1 parent 2200106 commit c83797b

File tree

6 files changed

+436
-431
lines changed

6 files changed

+436
-431
lines changed

client/session_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ func ExampleSession() {
2323
// data []byte = "info:1:1%0Apub:2499BEB8B47B0235009A5F0AEE8384B0561A25AF:..."
2424

2525
// More complex transaction: send key to keyserver.
26-
ses.Transact("KS_PUT", "", map[string]interface{}{
26+
if _, err := ses.Transact("KS_PUT", "", map[string]interface{}{
2727
"KEYBLOCK": []byte{},
2828
"KEYBLOCK_INFO": []byte{},
29-
})
29+
}); err != nil {
30+
fmt.Println(err)
31+
}
3032
}
3133

3234
func TestInitClose(t *testing.T) {
@@ -62,7 +64,7 @@ OK`)
6264
if err != nil {
6365
t.Log("Unexpected error on client.SimpleCmd:", err)
6466
}
65-
if data != nil && len(data) != 0 {
67+
if len(data) != 0 {
6668
t.Log("Unexpected data received:", data)
6769
}
6870
}

0 commit comments

Comments
 (0)