Skip to content

Commit 653dba0

Browse files
Update src/parser/mod.rs
Co-authored-by: Ifeanyi Ubah <[email protected]>
1 parent e941cb0 commit 653dba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7669,8 +7669,8 @@ impl<'a> Parser<'a> {
76697669
pub fn parse_optional_using_then_index_type(
76707670
&mut self,
76717671
) -> Result<Option<IndexType>, ParserError> {
7672-
Ok(if self.parse_keyword(Keyword::USING) {
7673-
Some(self.parse_index_type()?)
7672+
if self.parse_keyword(Keyword::USING) {
7673+
Ok(Some(self.parse_index_type()?))
76747674
} else {
76757675
None
76767676
})

0 commit comments

Comments
 (0)