aboutsummaryrefslogtreecommitdiff
path: root/hotline/transaction_handlers_test.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-24 19:03:49 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-24 19:03:49 -0700
commita7216f677e7b02831328293224730f6f06f2d38a (patch)
tree0694960361d7723b7ab77e76fb1f4a1f6db9de9e /hotline/transaction_handlers_test.go
parent590974641fde819128297803a12cfd4c744283a8 (diff)
Remove unnecessary use of pointers
Diffstat (limited to 'hotline/transaction_handlers_test.go')
-rw-r--r--hotline/transaction_handlers_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/hotline/transaction_handlers_test.go b/hotline/transaction_handlers_test.go
index 5136c7d..f283112 100644
--- a/hotline/transaction_handlers_test.go
+++ b/hotline/transaction_handlers_test.go
@@ -228,22 +228,22 @@ func TestHandleGetUserNameList(t *testing.T) {
Clients: map[uint16]*ClientConn{
uint16(1): {
ID: &[]byte{0, 1},
- Icon: &[]byte{0, 2},
- Flags: &[]byte{0, 3},
+ Icon: []byte{0, 2},
+ Flags: []byte{0, 3},
UserName: []byte{0, 4},
Agreed: true,
},
uint16(2): {
ID: &[]byte{0, 2},
- Icon: &[]byte{0, 2},
- Flags: &[]byte{0, 3},
+ Icon: []byte{0, 2},
+ Flags: []byte{0, 3},
UserName: []byte{0, 4},
Agreed: true,
},
uint16(3): {
ID: &[]byte{0, 3},
- Icon: &[]byte{0, 2},
- Flags: &[]byte{0, 3},
+ Icon: []byte{0, 2},
+ Flags: []byte{0, 3},
UserName: []byte{0, 4},
Agreed: false,
},
@@ -2834,9 +2834,9 @@ func TestHandleTranAgreed(t *testing.T) {
access := bits[:]
return &access
}()},
- Icon: &[]byte{0, 1},
- Flags: &[]byte{0, 1},
- Version: &[]byte{0, 1},
+ Icon: []byte{0, 1},
+ Flags: []byte{0, 1},
+ Version: []byte{0, 1},
ID: &[]byte{0, 1},
logger: NewTestLogger(),
Server: &Server{