Skip to content

Commit 2421381

Browse files
committed
chore: fix linting
1 parent dfbd66d commit 2421381

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

bikeymap/bikeymap_test.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package bikeymap
22

33
import (
44
"fmt"
5-
"github.com/aeimer/go-multikeymap/container"
65
"sync"
76
"testing"
7+
8+
"github.com/aeimer/go-multikeymap/container"
89
)
910

1011
func ExampleNewBiKeyMap() {
@@ -67,7 +68,7 @@ func TestBiKeyMap_SetDuplicateKeys(t *testing.T) {
6768
func TestBiKeyMap_DeleteByKeyA(t *testing.T) {
6869
bm := NewBiKeyMap[string, int, string]()
6970

70-
bm.Set("keyA1", 1, "value1")
71+
_ = bm.Set("keyA1", 1, "value1")
7172
err := bm.DeleteByKeyA("keyA1")
7273
if err != nil {
7374
t.Fatalf("unexpected error: %v", err)
@@ -87,7 +88,7 @@ func TestBiKeyMap_DeleteByKeyA(t *testing.T) {
8788
func TestBiKeyMap_DeleteByKeyB(t *testing.T) {
8889
bm := NewBiKeyMap[string, int, string]()
8990

90-
bm.Set("keyA1", 1, "value1")
91+
_ = bm.Set("keyA1", 1, "value1")
9192
err := bm.DeleteByKeyB(1)
9293
if err != nil {
9394
t.Fatalf("unexpected error: %v", err)
@@ -111,7 +112,7 @@ func TestBiKeyMap_EmptyAndSize(t *testing.T) {
111112
t.Error("expected map to be empty")
112113
}
113114

114-
bm.Set("keyA1", 1, "value1")
115+
_ = bm.Set("keyA1", 1, "value1")
115116
if bm.Empty() {
116117
t.Error("expected map to not be empty")
117118
}
@@ -124,8 +125,8 @@ func TestBiKeyMap_EmptyAndSize(t *testing.T) {
124125
func TestBiKeyMap_Clear(t *testing.T) {
125126
bm := NewBiKeyMap[string, int, string]()
126127

127-
bm.Set("keyA1", 1, "value1")
128-
bm.Set("keyA2", 2, "value2")
128+
_ = bm.Set("keyA1", 1, "value1")
129+
_ = bm.Set("keyA2", 2, "value2")
129130
bm.Clear()
130131

131132
if !bm.Empty() {
@@ -140,8 +141,8 @@ func TestBiKeyMap_Clear(t *testing.T) {
140141
func TestBiKeyMap_Values(t *testing.T) {
141142
bm := NewBiKeyMap[string, int, string]()
142143

143-
bm.Set("keyA1", 1, "value1")
144-
bm.Set("keyA2", 2, "value2")
144+
_ = bm.Set("keyA1", 1, "value1")
145+
_ = bm.Set("keyA2", 2, "value2")
145146

146147
values := bm.Values()
147148
if len(values) != 2 {

multikeymap/multikeymap_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package multikeymap
22

33
import (
44
"fmt"
5-
"github.com/aeimer/go-multikeymap/container"
65
"sync"
76
"testing"
7+
8+
"github.com/aeimer/go-multikeymap/container"
89
)
910

1011
func ExampleNewMultiKeyMap() {

0 commit comments

Comments
 (0)