Skip to content

Commit

Permalink
[transactionrecord] - Fixes should use String() instead of fmt.Sprint…
Browse files Browse the repository at this point in the history
…f (S1025)
  • Loading branch information
araujobsd authored and hxw committed Jun 18, 2019
1 parent 95d8764 commit bae2c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transactionrecord/assetidentifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestAssetIdentifier(t *testing.T) {

textAssetIdentifier := "37de3195b879cf5692a564e7f19bd6203e3fd8cffa8064ebe86ec8fff8dbf326ffa4d65cfef8350db4d72d93406f54fa0d06ce98005a939995ed05cc34fb7344"

if fmt.Sprintf("%s", expectedAssetIdentifier) != textAssetIdentifier {
if string(expectedAssetIdentifier) != textAssetIdentifier {
t.Errorf("asset id(%%s): %s expected: %s", expectedAssetIdentifier, textAssetIdentifier)
}

Expand Down

0 comments on commit bae2c0f

Please sign in to comment.