Fix some CI bot nits

This commit is contained in:
Zaki Manian
2019-07-05 20:44:00 -07:00
parent 02c467237e
commit d15f0f8df0
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -412,7 +412,7 @@ func (h *Header) Equal(h2 *Header) bool {
panic("incomplete heaeders cannot be compared")
}
h2Hash := h2.Hash()
return bytes.Compare(h1Hash, h2Hash) == 0
return bytes.Equal(h1Hash, h2Hash)
}
// Hash returns the hash of the header.
@@ -708,7 +708,7 @@ func (commit *Commit) Equal(commit2 *Commit) bool {
panic("incomplete commit cannot be compared")
}
c2Hash := commit2.Hash()
return bytes.Compare(c1Hash, c2Hash) == 0
return bytes.Equal(c1Hash, c2Hash)
}
// Hash returns the hash of the commit