Rename startWatcher to initWatcher to match initSearchIndex

This commit is contained in:
Seongjae Lee
2016-07-05 01:07:03 -07:00
parent 81c36a7521
commit 7e12c57f0b
+2 -2
View File
@@ -17,7 +17,7 @@ class NoteWatcher extends EventEmitter
@_enableLunrPipeline = @_enableLunrPipeline ? false
@_noteCache = new NoteCache(@_baseDirectory, @_maxItems)
@_restoreSearchIndex() || @_initSearchIndex()
@_startWatcher()
@_initWatcher()
save: ->
return unless @_state == 'ready'
@@ -72,7 +72,7 @@ class NoteWatcher extends EventEmitter
@_state = 'recovering'
return true
_startWatcher: ->
_initWatcher: ->
options = {
ignored: (filePath, fileStat) =>
if fileStat?.isFile() then @_extensions.indexOf(path.extname(filePath)) < 0 else false