Before:
if (!bool) {
yield call(
setOnTop,
false
);
} else {
yield call(
setOnTop,
true,
'normal'
); // To see why we include, 'normal,' see here: https://github.com/....
}
After:
yield !bool
? call(setOnTop, false)
: call(
setOnTop,
true,
'normal'
);
Looks so much better, but the comment is gone!
Affected rule: unicorn/prefer-ternary
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too