Skip to content

Commit

Permalink
lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thykof committed Oct 25, 2023
1 parent 4fe695f commit 51b14ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/handler/wallet/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ func (w *walletSign) privateKeyFromCache(
func Xor(bufferA, bufferB *memguard.LockedBuffer) (*memguard.LockedBuffer, error) {
a := bufferA.Bytes()
b := bufferB.Bytes()

if len(a) != len(b) {
return nil, fmt.Errorf("length of two arrays must be same, %d and %d", len(a), len(b))
}
Expand Down

0 comments on commit 51b14ab

Please sign in to comment.