Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
trunk bot committed Mar 29, 2024
1 parent 0797d00 commit b08188c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn move_random_line(filename: &str) -> String {
.collect::<Result<_, _>>()
.expect("failed to read lines");

if lines.len() == 0 {
if lines.is_empty() {
panic!("Cannot continue the file {} is empty", filename);
}

Expand Down

0 comments on commit b08188c

Please sign in to comment.