chore: add missing async to network.ts#2107
Conversation
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@wxt-dev/analytics
@wxt-dev/auto-icons
@wxt-dev/browser
@wxt-dev/i18n
@wxt-dev/module-react
@wxt-dev/module-solid
@wxt-dev/module-svelte
@wxt-dev/module-vue
@wxt-dev/runner
@wxt-dev/storage
@wxt-dev/unocss
@wxt-dev/webextension-polyfill
wxt
commit: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2107 +/- ##
==========================================
+ Coverage 76.14% 76.23% +0.08%
==========================================
Files 113 113
Lines 3031 3034 +3
Branches 680 680
==========================================
+ Hits 2308 2313 +5
Misses 639 639
+ Partials 84 82 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1654034 to
80f6dd8
Compare
There was a problem hiding this comment.
This function doesn't await anything, so it doesn't need to be async. If you want to refactor the rest of the function to use try/catch and await, then the function needs to be async. But it's fine for now.
My editor also recommended this change, but I didn't add it for this reason in my async/await cleanup PR.
80f6dd8 to
8fc8ce1
Compare
|
@aklinker1 It'll be ok, if i'm add tests for |
Sorry, I don't understand your question |
|
@aklinker1 I want to add try/catch in this PR. |
aklinker1
left a comment
There was a problem hiding this comment.
Good to go after the one recommended change.
I want to add try/catch in this PR.
OK, sounds good.
And in other tests for entire network.ts(If this could be helpful, if not, don't mind)
Not sure what you mean by this, where is an example?
Co-authored-by: Aaron <aaronklinker1@gmail.com>
dea6c32 to
ea28625
Compare
aklinker1
left a comment
There was a problem hiding this comment.
Just missing an import for consola
|
@aklinker1 OH yeah |
|
Thanks for helping make WXT better! |
No description provided.