Closed lym953 closed 2 months ago
Refactors some code by changing:
if (<condition>) { // do a lot of things } return false;
to
if (!<condition>) { return false; } // do a lot of things
Make code more readable in that:
}
<condition>
This is a simple change, so just npm test
npm test
Branch report: yiming.luo/fix-step-func-5 Commit report: 1306a7c Test service: datadog-ci-tests
yiming.luo/fix-step-func-5
1306a7c
datadog-ci-tests
:white_check_mark: 0 Failed, 376 Passed, 0 Skipped, 1m 26.67s Total duration (2m 1.01s time saved)
What
Refactors some code by changing:
to
Why
Make code more readable in that:
}
is<condition>
is falseTesting
This is a simple change, so just
npm test
Review checklist