Skip to content

Commit

Permalink
[#110] 불필요한 분기 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
myyrakle committed Aug 13, 2024
1 parent c7e613b commit 8bc29af
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/parser/implements/ddl/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ impl Parser {

match current_token {
Token::RightParentheses => {
self.unget_next_token(current_token);
break;
}
_ => {
Expand All @@ -67,20 +66,6 @@ impl Parser {
}
}

// 닫는 괄호 체크
if !self.has_next_token() {
return Err(ParsingError::wrap("E1209 need more tokens"));
}

let current_token = self.get_next_token();

if Token::RightParentheses != current_token {
return Err(ParsingError::wrap(format!(
"E1210 expected ')'. but your input word is '{:?}'",
current_token
)));
}

if !self.has_next_token() {
return Ok(query_builder.build());
}
Expand Down

0 comments on commit 8bc29af

Please sign in to comment.