Skip to content

Commit

Permalink
Use .contains()
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Sep 6, 2024
1 parent 8bce7ac commit 9bf90e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/helpwrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub fn wrap(text: &str, width: usize, indent_with: &str, no_indent: &str, no_wra
}

#[cfg(test)]
if result.find("no-sanity").is_none() {
if !result.contains("no-sanity") {
// sanity check
let stripped_input = text
.replace(" ", "")
Expand Down

0 comments on commit 9bf90e5

Please sign in to comment.