From 5959766cbd69aa11ccb09ac82a10bcc485c8da3b Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 15 Oct 2024 00:10:14 +0200 Subject: chore(tfstated): simplify some code --- pkg/scrypto/aes256_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/scrypto') diff --git a/pkg/scrypto/aes256_test.go b/pkg/scrypto/aes256_test.go index 9914625..d07221d 100644 --- a/pkg/scrypto/aes256_test.go +++ b/pkg/scrypto/aes256_test.go @@ -3,7 +3,6 @@ package scrypto import ( "encoding/hex" "slices" - "strings" "testing" ) @@ -18,7 +17,7 @@ func TestAES256KeyHex(t *testing.T) { if slices.Compare(testKey, key[:]) != 0 { t.Errorf("got %v, wanted %v", testKey, key[:]) } - if strings.Compare(testKeyHex, key.Hex()) != 0 { + if testKeyHex != key.Hex() { t.Errorf("got %v, wanted %v", testKeyHex, key.Hex()) } } -- cgit v1.2.3