diff options
author | Julien Dessaux | 2024-10-15 00:10:14 +0200 |
---|---|---|
committer | Julien Dessaux | 2024-10-15 00:16:07 +0200 |
commit | 5959766cbd69aa11ccb09ac82a10bcc485c8da3b (patch) | |
tree | f744065333cfb8d5377c97a2f9e8a8064ce70429 /pkg | |
parent | feat(tfstated): implement states versioning (diff) | |
download | tfstated-5959766cbd69aa11ccb09ac82a10bcc485c8da3b.tar.gz tfstated-5959766cbd69aa11ccb09ac82a10bcc485c8da3b.tar.bz2 tfstated-5959766cbd69aa11ccb09ac82a10bcc485c8da3b.zip |
chore(tfstated): simplify some code
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/scrypto/aes256_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
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()) } } |