Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
catdad committed Apr 28, 2024
1 parent a97a6ca commit 35e3337
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ const pathmap = {};
// assume that file is a main process file
(function addMainFile(args) {
for (const opt of args) {
const optPath = path.resolve(opt);

try {
const optPath = path.resolve(opt);
const file = require.resolve(optPath);
pathmap[file] = true;
queue({ type: 'discover', file });
Expand Down

0 comments on commit 35e3337

Please sign in to comment.