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 committed Mar 4, 2024
1 parent ff1b768 commit 48e937c
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 48e937c

Please sign in to comment.