sbox: fix typo when comparing files

A typo caused one of the two files to be compared to itself if they
both had the same size.

Bug: 228496289
Test: Test_filesHaveSameContents
Change-Id: Ie44f32e3c9b8ef725f0d9933c7e701340036710a
This commit is contained in:
Colin Cross
2022-04-12 17:26:58 -07:00
parent 338df53621
commit fa8e9cc3a1
2 changed files with 128 additions and 1 deletions

View File

@@ -750,7 +750,7 @@ func filesHaveSameContents(a, b string) bool {
return false
}
defer fileA.Close()
fileB, err := os.Open(a)
fileB, err := os.Open(b)
if err != nil {
return false
}