summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorJulien Dessaux2024-10-15 00:10:14 +0200
committerJulien Dessaux2024-10-15 00:16:07 +0200
commit5959766cbd69aa11ccb09ac82a10bcc485c8da3b (patch)
treef744065333cfb8d5377c97a2f9e8a8064ce70429 /pkg
parentfeat(tfstated): implement states versioning (diff)
downloadtfstated-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.go3
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())
}
}