Skip to content

Commit

Permalink
[INTERNAL] Adjust catch syntax i.f. of ESLint9
Browse files Browse the repository at this point in the history
  • Loading branch information
maxreichmann committed Aug 5, 2024
1 parent 9fd81bc commit 158e705
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/graph/providers/NodePackageDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ class NodePackageDependencies {
name: depName,
optional: true
});
// eslint-disable-next-line no-unused-vars
} catch (err) {
} catch {
// Ignore error since it's a development dependency of a non-root module
}
}));
Expand All @@ -173,8 +172,7 @@ class NodePackageDependencies {
name: depName,
optional: false
});
// eslint-disable-next-line no-unused-vars
} catch (err) {
} catch {
// Ignore error since it's an optional dependency
}
}));
Expand Down

0 comments on commit 158e705

Please sign in to comment.