Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
bestgopher committed Dec 15, 2021
1 parent 8637c15 commit 8bf6614
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ keywords = ["soundex"]
[features]
full = []
default = []

2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn soundex(s: &str) -> String {
last = score;
r.push(next.to_ascii_uppercase());
} else {
if !next.is_ascii_alphabetic() || is_drop(next) || score.is_none() || score == last {
if !next.is_ascii_alphabetic() || is_drop(next) || score == last {
continue;
}

Expand Down

0 comments on commit 8bf6614

Please sign in to comment.