Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor to resolve ESLint warning in indexeddb.ts #58

Open
odendayoko opened this issue Oct 26, 2024 · 0 comments
Open

Refactor to resolve ESLint warning in indexeddb.ts #58

odendayoko opened this issue Oct 26, 2024 · 0 comments

Comments

@odendayoko
Copy link
Member

odendayoko commented Oct 26, 2024

Provide the exact quote of the error or issue

ESLint warning @typescript-eslint/no-unnecessary-condition in the following line of indexeddb.ts.

if (!db) db = await openDatabase()

An implementation that defines db in a global variable may not be appropriate.
I would like to see it refactored so that the warning no longer appears.

Does the feature already exist? Please link to it.

No response

Are you willing to participate in fixing this issue and create a pull request with the fix?

None

@odendayoko odendayoko changed the title indexeddb.tsでESLintの警告が出ているのでrefactorしたい Refactor to resolve ESLint warning in indexeddb.ts Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant