Skip to content

Commit

Permalink
fix: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lovell Fuller <lovell@users.noreply.github.com>
  • Loading branch information
styfle and lovell authored Mar 4, 2024
1 parent 2441441 commit fc742e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ const isLinux = () => process.platform === 'linux';
let report = null;
const getReport = () => {
if (!report) {
/* istanbul ignore next */
if (isLinux() && process.report) {
const orig = process.report.excludeNetwork;
process.report.excludeNetwork = true;
report = process.report.getReport();
process.report.excludeNetwork = orig;
} else {
/* istanbul ignore next */
report = {};
}
}
Expand Down

0 comments on commit fc742e5

Please sign in to comment.