chore(tfstated): simplify some code

This commit is contained in:
Julien Dessaux 2024-10-15 00:10:14 +02:00
parent 3319e74279
commit 5959766cbd
Signed by: adyxax
GPG key ID: F92E51B86E07177E
7 changed files with 55 additions and 56 deletions

View file

@ -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())
}
}