Skip to content

Commit

Permalink
chore: remove unused catch clauses (#9893)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Apr 26, 2020
1 parent d814646 commit 673eb49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/jest-resolve/src/index.ts
Expand Up @@ -218,7 +218,7 @@ class Resolver {
resolveNodeModule(module) || require.resolve(module);
this._moduleNameCache.set(key, resolvedModule);
return resolvedModule;
} catch (ignoredError) {}
} catch {}
}

return null;
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/helpers.ts
Expand Up @@ -48,7 +48,7 @@ export const findSiblingsWithFileExtension = (
`[${mappedModuleFileExtensions}].\n\nSee https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring`
);
}
} catch (ignored) {}
} catch {}
}

return '';
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-worker/src/WorkerPool.ts
Expand Up @@ -20,7 +20,7 @@ const canUseWorkerThreads = () => {
try {
require('worker_threads');
return true;
} catch (_) {
} catch {
return false;
}
};
Expand Down

0 comments on commit 673eb49

Please sign in to comment.