(path string)
| 149 | } |
| 150 | |
| 151 | func (w *Watcher) isKnownAuthFile(path string) bool { |
| 152 | normalized := w.normalizeAuthPath(path) |
| 153 | w.clientsMutex.RLock() |
| 154 | defer w.clientsMutex.RUnlock() |
| 155 | _, ok := w.lastAuthHashes[normalized] |
| 156 | return ok |
| 157 | } |
| 158 | |
| 159 | func (w *Watcher) normalizeAuthPath(path string) string { |
| 160 | trimmed := strings.TrimSpace(path) |
no test coverage detected