Skip to content

Commit 81117a1

Browse files
committed
Fixed sonar
1 parent cf2a77d commit 81117a1

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/g0501_0600/s0572_subtree_of_another_tree

1 file changed

+1
-1
lines changed

src/main/java/g0501_0600/s0572_subtree_of_another_tree/Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private boolean traverse(TreeNode root, TreeNode subRoot) {
3939
if (root != null && subRoot == null) {
4040
return false;
4141
}
42-
if (root == null && subRoot == null) {
42+
if (root == null) {
4343
return true;
4444
}
4545
if (root.val != subRoot.val) {

0 commit comments

Comments
 (0)