Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Commit be1516f

Browse files
authored
swarm/storage: fix lint warning in Validate function (#721)
1 parent 9d35ceb commit be1516f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

swarm/storage/types.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,5 @@ func (v *ContentAddressValidator) Validate(addr Address, data []byte) bool {
344344
hasher.Write(data[8:])
345345
hash := hasher.Sum(nil)
346346

347-
if !bytes.Equal(hash, addr[:]) {
348-
return false
349-
}
350-
return true
347+
return bytes.Equal(hash, addr[:])
351348
}

0 commit comments

Comments
 (0)