lib/ignore: Remove unused patterns in cache (#9601)

Tiny cleanup I noticed while trying to fix/test another issue
(https://github.com/syncthing/syncthing/pull/9600). I shortly tried to
figure out what it was used for in the past, but gave up without
results.
This commit is contained in:
Simon Frei
2024-07-02 11:01:00 +00:00
committed by GitHub
parent 403ce7e597
commit aea7fa5f22
3 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ func (m *Matcher) parseLocked(r io.Reader, file string) error {
m.curHash = newHash
m.patterns = patterns
if m.withCache {
m.matches = newCache(patterns)
m.matches = newCache()
}
return err