From d1b7f655df1918f04e013acbb4ec0eb36122c40b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 26 Mar 2024 15:07:56 -0300 Subject: search: code style cleanup (no logic changes) --- src/upd8.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/upd8.js') diff --git a/src/upd8.js b/src/upd8.js index 358bf47b..17fd7d7c 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -47,12 +47,11 @@ import {bindFind, getAllFindSpecs} from '#find'; import {processLanguageFile, watchLanguageFile, internalDefaultStringsFile} from '#language'; import {isMain, traverse} from '#node-utils'; +import {writeSearchIndex} from '#search' import {sortByName} from '#sort'; import {generateURLs, urlSpec} from '#urls'; import {identifyAllWebRoutes} from '#web-routes'; -import {writeSearchIndex} from '#search' - import { colors, decorateTime, @@ -1481,10 +1480,10 @@ async function main() { timeStart: Date.now(), }); - const search_index_path = path.join(mediaPath, "search_index.json") - logInfo(`Search index: ${search_index_path}`) + const searchIndexPath = path.join(mediaPath, "search_index.json"); + logInfo`Search index: ${searchIndexPath}`; - await writeSearchIndex(search_index_path, wikiData) + await writeSearchIndex(searchIndexPath, wikiData); Object.assign(stepStatusSummary.buildSearchIndex, { status: STATUS_DONE_CLEAN, -- cgit 1.3.0-6-gf8a5