Skip to content

Commit 5c9bdc5

Browse files
[grep] Removed redundand comment
1 parent b9f6a79 commit 5c9bdc5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

text/src/grep.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,6 @@ impl GrepModel {
399399
if n_read == 0 {
400400
break;
401401
}
402-
// let trimmed = if line.ends_with("\r\n") {
403-
// &line[..line.len() - 2]
404-
// } else if line.ends_with('\n') {
405-
// &line[..line.len() - 1]
406-
// } else {
407-
// &line
408-
// };
409402
let trimmed = if line.ends_with('\n') {
410403
&line[..line.len() - 1]
411404
} else {

0 commit comments

Comments
 (0)