Skip to content

Commit

Permalink
fix: return early
Browse files Browse the repository at this point in the history
  • Loading branch information
HiranmayaGundu committed Apr 20, 2024
1 parent 8be8f27 commit eb3e221
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8821,10 +8821,10 @@ impl<'a> Parser<'a> {
let opt_ilike = if self.parse_keyword(Keyword::ILIKE) {
let next_token = self.next_token();
let pattern = match next_token.token {
Token::SingleQuotedString(s) => Ok(s),
_ => self.expected("ilike pattern", next_token),
Token::SingleQuotedString(s) => s,
_ => return self.expected("ilike pattern", next_token),
};
Some(IlikeSelectItem { pattern: pattern? })
Some(IlikeSelectItem { pattern: pattern })

Check failure on line 8827 in src/parser/mod.rs

View workflow job for this annotation

GitHub Actions / lint

redundant field names in struct initialization

Check failure on line 8827 in src/parser/mod.rs

View workflow job for this annotation

GitHub Actions / lint

redundant field names in struct initialization
} else {
None
};
Expand Down

0 comments on commit eb3e221

Please sign in to comment.