Skip to content

Commit 0eb8135

Browse files
committed
refactor: remove unneeded branch
1 parent b4cb570 commit 0eb8135

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/parser/lex.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,7 @@ impl Lexer {
429429
}
430430
if !found_lparen {
431431
// Not followed by (, treat as metric identifier
432-
if s.contains(':') {
433-
return State::Lexeme(T_METRIC_IDENTIFIER);
434-
} else {
435-
return State::Lexeme(T_IDENTIFIER);
436-
}
432+
return State::Lexeme(T_IDENTIFIER);
437433
}
438434
}
439435
State::Lexeme(token_id)

0 commit comments

Comments
 (0)