Skip to content

Fix JS-0116 warnings in wiki-data-manager ensureIndex#9

Merged
kiyarose merged 3 commits into
copilot/implement-remote-wiki-data-loadingfrom
codex/fix-async-functions-without-await-in-javascript
Mar 27, 2026
Merged

Fix JS-0116 warnings in wiki-data-manager ensureIndex#9
kiyarose merged 3 commits into
copilot/implement-remote-wiki-data-loadingfrom
codex/fix-async-functions-without-await-in-javascript

Conversation

@kiyarose

Copy link
Copy Markdown
Member

Motivation

  • Remove the unnecessary async modifier from ensureIndex to resolve DeepSource JS-0116 findings in both platform script copies.

Description

  • Replace async function ensureIndex () { with function ensureIndex () { in ios/extention/Resources/scripts/wiki-data-manager.js and mos/Flean Extension/Resources/scripts/wiki-data-manager.js, preserving the original promise-based behavior.

Testing

  • Ran node --check ios/extention/Resources/scripts/wiki-data-manager.js and node --check "mos/Flean Extension/Resources/scripts/wiki-data-manager.js", and both checks passed.

Codex Task

Copilot AI review requested due to automatic review settings March 27, 2026 12:32
@deepsource-io

deepsource-io Bot commented Mar 27, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 25f5d30...5a3d3f3 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
PHP Mar 27, 2026 12:34p.m. Review ↗
Shell Mar 27, 2026 12:34p.m. Review ↗
JavaScript Mar 27, 2026 12:34p.m. Review ↗
Swift Mar 27, 2026 12:34p.m. Review ↗

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to resolve DeepSource JS-0116 warnings by removing an unnecessary async modifier from ensureIndex in both platform copies of wiki-data-manager.js.

Changes:

  • Removed async from ensureIndex() in the iOS script copy.
  • Removed async from ensureIndex() in the MOS script copy.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
mos/Flean Extension/Resources/scripts/wiki-data-manager.js Removes async from ensureIndex() to address JS-0116 warning.
ios/extention/Resources/scripts/wiki-data-manager.js Removes async from ensureIndex() to address JS-0116 warning.

Comment thread mos/Flean Extension/Resources/scripts/wiki-data-manager.js Outdated
Comment thread ios/extention/Resources/scripts/wiki-data-manager.js Outdated
kiyarose and others added 2 commits March 27, 2026 08:34
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@kiyarose
kiyarose merged commit c45f702 into copilot/implement-remote-wiki-data-loading Mar 27, 2026
5 checks passed
@kiyarose
kiyarose deleted the codex/fix-async-functions-without-await-in-javascript branch March 27, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants