Skip to content

Commit

Permalink
Revert "less if"
Browse files Browse the repository at this point in the history
This reverts commit dd71548.
  • Loading branch information
SimenB committed May 4, 2018
1 parent 52cbecb commit 8ba227e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/jest-cli/src/run_jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,14 @@ const processResults = (runResults, options) => {
onComplete,
outputStream,
testResultsProcessor,
whyRunning = () => {},
whyRunning,
} = options;

runResults.openHandles = formatWhyRunning(whyRunning);
if (whyRunning) {
runResults.openHandles = formatWhyRunning(whyRunning);
} else {
runResults.openHandles = [];
}

if (testResultsProcessor) {
/* $FlowFixMe */
Expand Down

0 comments on commit 8ba227e

Please sign in to comment.