normalize now properly uses boolean parameters (#1526)

This commit is contained in:
Michael Gallo authored and GitHub committed 2023-12-11 15:51:33 +11:00
1 parent ec9bdad90d
commit d8b7df87cb
1 file changed
+2 -2
+2 -2
View File
@@ -197,11 +197,11 @@ func newDir(path string) *dir {
}
func normalize(s1, s2 string, ignorecase, ignoredia bool) (string, string) {
if gOpts.ignorecase {
if ignorecase {
s1 = strings.ToLower(s1)
s2 = strings.ToLower(s2)
}
if gOpts.ignoredia {
if ignoredia {
s1 = removeDiacritics(s1)
s2 = removeDiacritics(s2)
}