Skip to content

Commit 5a33969

Browse files
committed
Add a comment to clarify that we're handling the empty file case
Signed-off-by: Tom Faulhaber <[email protected]>
1 parent 11900e8 commit 5a33969

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/path.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func sameFile(f1, f2 *currentPath) (bool, error) {
123123
} else if f1.f.Size() > 0 {
124124
eq, err = compareFileContent(f1.fullPath, f2.fullPath)
125125
} else {
126-
eq, err = true, nil
126+
eq, err = true, nil // if file sizes are zero length, the files are the same by definition
127127
}
128128
if err != nil || !eq {
129129
return eq, err

0 commit comments

Comments
 (0)