Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(canExpand, hunks) => {
if (canExpand) {
// Expand a normal section to demostrate util function
return expandCollapsedBlockBy(
expandFromRawCode(hunks, rawCode, 18, 22),
rawCode,
lines => lines <= 10
);
}
return hunks;
}
);