Skip to content

Commit d7d8256

Browse files
Remove pointless ternary operator
Signed-off-by: Andy Jakubowski <[email protected]>
1 parent 0ae0e56 commit d7d8256

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/convert-deepnote-block-to-jupyter-cell.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ export function convertDeepnoteBlockToJupyterCell(block: DeepnoteBlock) {
2626
const jupyterCell: ICodeCell = {
2727
cell_type: 'code',
2828
metadata: jupyterCellMetadata,
29-
execution_count:
30-
blockCopy.executionCount !== undefined
31-
? blockCopy.executionCount
32-
: null,
29+
execution_count: blockCopy.executionCount ?? null,
3330
outputs: blockOutputs,
3431
source
3532
};

0 commit comments

Comments
 (0)