Skip to content

Commit 0872c42

Browse files
committed
Fix ensureIndex async lint warnings in wiki data manager
1 parent 25f5d30 commit 0872c42

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ios/extention/Resources/scripts/wiki-data-manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ let _wikiIndex = null
111111
let _wikiIndexPromise = null
112112

113113
/** Ensure the in-memory lookup index is built. */
114-
async function ensureIndex () {
114+
function ensureIndex () {
115115
if (_wikiIndex !== null) return _wikiIndex
116116
if (_wikiIndexPromise) return _wikiIndexPromise
117117
_wikiIndexPromise = getWikiData().then(data => {

mos/Flean Extension/Resources/scripts/wiki-data-manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ let _wikiIndex = null
111111
let _wikiIndexPromise = null
112112

113113
/** Ensure the in-memory lookup index is built. */
114-
async function ensureIndex () {
114+
function ensureIndex () {
115115
if (_wikiIndex !== null) return _wikiIndex
116116
if (_wikiIndexPromise) return _wikiIndexPromise
117117
_wikiIndexPromise = getWikiData().then(data => {

0 commit comments

Comments
 (0)