Skip to content

Commit d8b7df8

Browse files
normalize now properly uses boolean parameters (#1526)
1 parent ec9bdad commit d8b7df8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nav.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ func newDir(path string) *dir {
197197
}
198198

199199
func normalize(s1, s2 string, ignorecase, ignoredia bool) (string, string) {
200-
if gOpts.ignorecase {
200+
if ignorecase {
201201
s1 = strings.ToLower(s1)
202202
s2 = strings.ToLower(s2)
203203
}
204-
if gOpts.ignoredia {
204+
if ignoredia {
205205
s1 = removeDiacritics(s1)
206206
s2 = removeDiacritics(s2)
207207
}

0 commit comments

Comments
 (0)