chore(tfstated): simplify some code
This commit is contained in:
parent
3319e74279
commit
5959766cbd
7 changed files with 55 additions and 56 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue