Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
Co-authored-by: Micha Reiser <micha@reiser.io>
  • Loading branch information
augustelalande and MichaReiser authored Sep 10, 2024
1 parent 993deb8 commit 7b96439
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,7 @@ fn parse_parameters_google(content: &str) -> Vec<&str> {
};
for potential in content.lines() {
if let Some(entry) = potential.strip_prefix(indentation) {
if let Some(first_char) = entry.chars().next() {
if !first_char.is_whitespace() {
if entry.chars().next().is_some_and(|first_char| !first_char.is_whitespace())
let Some(colon_idx) = entry.find(':') else {
continue;
};
Expand Down

0 comments on commit 7b96439

Please sign in to comment.