Use .Equal() instead of == for time.Time

Closes #1238
This commit is contained in:
Alexander Neumann
2017-09-15 20:57:35 +02:00
parent 5b1e4df177
commit a60e751217
3 changed files with 5 additions and 5 deletions

View File

@@ -71,7 +71,7 @@ func sameModTime(fi1, fi2 os.FileInfo) bool {
}
}
return fi1.ModTime() == fi2.ModTime()
return fi1.ModTime().Equal(fi2.ModTime())
}
// directoriesEqualContents checks if both directories contain exactly the same