Skip to content

Commit 0499b95

Browse files
committed
fix(identity): add blank lines before returns to satisfy nlreturn linter
Signed-off-by: Rama542 <ramasasankgudipati@gmail.com> Signed-off-by: Rama542 <Rama542@users.noreply.github.com>
1 parent 3abce17 commit 0499b95

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

token/services/identity/eth/eip712.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@ func hashEndorsementStruct(req EndorsementRequest) []byte {
108108
func keccak256(data []byte) []byte {
109109
h := sha3.NewLegacyKeccak256()
110110
h.Write(data)
111+
111112
return h.Sum(nil)
112113
}
113114

114115
// uint64ToBytes32 encodes v as a 32-byte big-endian value (ABI uint256 encoding).
115116
func uint64ToBytes32(v uint64) []byte {
116117
b := make([]byte, 32)
117118
binary.BigEndian.PutUint64(b[24:], v)
119+
118120
return b
119121
}

token/services/identity/eth/eth_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func generateKey(t *testing.T) (*secp256k1.PrivateKey, *secp256k1.PublicKey) {
2020
t.Helper()
2121
priv, err := secp256k1.GeneratePrivateKey()
2222
require.NoError(t, err)
23+
2324
return priv, priv.PubKey()
2425
}
2526

0 commit comments

Comments
 (0)