Use singe quotes consistently

This commit is contained in:
Michael Naumov
2022-06-06 08:16:24 -06:00
parent 9b1123dee8
commit ff38f8258b
2 changed files with 6 additions and 6 deletions

View File

@@ -67,11 +67,11 @@ export async function initGlobalSearchIndex(): Promise<void> {
try {
const json = await app.vault.adapter.read(searchIndexFilePath)
minisearchInstance = MiniSearch.loadJSON(json, options)
console.log("MiniSearch index loaded from the file")
console.log('MiniSearch index loaded from the file')
await loadNotesCache()
}
catch(e) {
console.trace("Could not load MiniSearch index from the file")
console.trace('Could not load MiniSearch index from the file')
console.error(e)
}
}
@@ -394,7 +394,7 @@ async function saveIndexToFile(): Promise<void> {
if (settings.storeIndexInFile && minisearchInstance && isIndexChanged) {
const json = JSON.stringify(minisearchInstance)
await app.vault.adapter.write(searchIndexFilePath, json)
console.log("MiniSearch index saved to the file")
console.log('MiniSearch index saved to the file')
await saveNotesCacheToFile()
isIndexChanged = false