提交 fe80cf47 编写于 作者: T Tobias Guggenmos 提交者: Julius Volz

promql: Eliminate dead code (#6215)

peek() already ensures to not return a ItemComment so checking for this
is redundant.
Signed-off-by: NTobias Guggenmos <tguggenm@redhat.com>
上级 95d3d3f7
......@@ -106,9 +106,6 @@ func (p *parser) parseExpr() (expr Expr, err error) {
defer p.recover(&err)
for p.peek().typ != ItemEOF {
if p.peek().typ == ItemComment {
continue
}
if expr != nil {
p.errorf("could not parse remaining input %.15q...", p.lex.input[p.lex.lastPos:])
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册