Skip to content

Commit

Permalink
fix: return err == nil
Browse files Browse the repository at this point in the history
Signed-off-by: QuentinN42 <[email protected]>
  • Loading branch information
QuentinN42 committed Aug 16, 2023
1 parent b6a71e1 commit 931140b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ func hash(data string) []byte {

func compare(hash []byte, data string) bool {
err := bcrypt.CompareHashAndPassword(hash, []byte(data))
if err != nil {
return false
}
return true
return err == nil
}

func start(addr string, port string, expected_hash []byte) {
Expand Down

0 comments on commit 931140b

Please sign in to comment.