Skip to content

Commit 1b0d46a

Browse files
authored
Update Solution.java
1 parent c6d29bc commit 1b0d46a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/java/g0701_0800/s0722_remove_comments/Solution.java

-3
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,13 @@ public List<String> removeComments(String[] source) {
4141
} else if (!multiComment) {
4242
sb.append(ch);
4343
}
44-
4544
index++;
4645
}
47-
4846
if (sb.length() > 0 && !multiComment) {
4947
result.add(sb.toString());
5048
sb.setLength(0);
5149
}
5250
}
53-
5451
return result;
5552
}
5653
}

0 commit comments

Comments
 (0)