Skip to content

Commit

Permalink
remove un-necessary await keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed May 16, 2023
1 parent d45521c commit d6f181b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/esmockIsLoader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { loaderIsVerified } from './esmockLoader.js'

export default (c => async () =>
c || (c = await loaderIsVerified(import.meta.url)))()
(c = c || loaderIsVerified(import.meta.url)))()
4 changes: 2 additions & 2 deletions src/esmockLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const nextResolveCall = async (nextResolve, specifier, context) => (
context.parentURL &&
(context.conditions.slice(-1)[0] === 'node-addons'
|| context.importAssertions || isLT1612)
? await nextResolve(specifier, context)
: await nextResolve(specifier))
? nextResolve(specifier, context)
: nextResolve(specifier))

const resolve = async (specifier, context, nextResolve) => {
const { parentURL } = context
Expand Down

0 comments on commit d6f181b

Please sign in to comment.