minor cleanup to avoid is_ok() (#740)

This commit is contained in:
Andrew Lamb 2022-11-30 13:25:17 -05:00 committed by GitHub
parent bd35273789
commit 77eddfcc8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2749,7 +2749,7 @@ impl<'a> Parser<'a> {
let index_name = self.parse_object_name()?;
self.expect_keyword(Keyword::ON)?;
let table_name = self.parse_object_name()?;
let using = if self.expect_keyword(Keyword::USING).is_ok() {
let using = if self.parse_keyword(Keyword::USING) {
Some(self.parse_identifier()?)
} else {
None