lib/model: Deduplicate folder loops

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4352
LGTM: AudriusButkevicius, calmh
This commit is contained in:
Simon Frei
2017-09-07 06:17:47 +00:00
committed by Jakob Borg
parent 4d3e0de4ba
commit f7d2c58783
4 changed files with 19 additions and 34 deletions

View File

@@ -57,7 +57,3 @@ func (f *folderScanner) Scan(subdirs []string) error {
func (f *folderScanner) Delay(next time.Duration) {
f.delay <- next
}
func (f *folderScanner) HasNoInterval() bool {
return f.interval == 0
}