From a1f8efff9aa4e119d78d6e42546c1bad720140b0 Mon Sep 17 00:00:00 2001 From: Florian Lefebvre Date: Thu, 25 Apr 2024 16:44:06 +0200 Subject: [PATCH] refactor: simplify expression (#101) --- package/src/utilities/add-virtual-imports.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/src/utilities/add-virtual-imports.ts b/package/src/utilities/add-virtual-imports.ts index 16eb969..3afd1db 100644 --- a/package/src/utilities/add-virtual-imports.ts +++ b/package/src/utilities/add-virtual-imports.ts @@ -82,9 +82,7 @@ const createVirtualModule = ( const data = imports.find( (_import) => _import.id === resolution && - (_import.context === undefined - ? true - : _import.context === context), + (_import.context === undefined || _import.context === context), ); if (data) {