Skip to content

Commit 88769c6

Browse files
authored
Add spaces after control flow statements.
Adding spaces.
1 parent 67c612f commit 88769c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/1325-delete-leaves-with-a-given-value.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
var removeLeafNodes = function(root, target) {
1818

1919
const dfs = (node) => {
20-
if(!node) return null;
20+
if (!node) return null;
2121
node.left = dfs(node.left);
2222
node.right = dfs(node.right);
23-
if(!node.left && !node.right) {
24-
if(node.val === target) return null;
23+
if (!node.left && !node.right) {
24+
if (node.val === target) return null;
2525
}
2626
return node;
2727
}

0 commit comments

Comments
 (0)