From cbd0e7bea0117049b5a49d1be9c56d84b9ec149b Mon Sep 17 00:00:00 2001 From: Casper Kuethe Date: Sun, 30 Jul 2023 22:49:14 +0200 Subject: [PATCH] cleanup --- vlib/v/checker/orm.v | 2 +- vlib/v/parser/orm.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/checker/orm.v b/vlib/v/checker/orm.v index 324910371a..5455a2a9da 100644 --- a/vlib/v/checker/orm.v +++ b/vlib/v/checker/orm.v @@ -29,7 +29,7 @@ fn (mut c Checker) sql_expr(mut node ast.SqlExpr) ast.Type { if !c.ensure_type_exists(node.table_expr.typ, node.pos) { return ast.void_type } - mut table_sym := c.table.sym(c.unwrap_generic(node.table_expr.typ)) + table_sym := c.table.sym(c.unwrap_generic(node.table_expr.typ)) if !c.check_orm_table_expr_type(node.table_expr) { return ast.void_type diff --git a/vlib/v/parser/orm.v b/vlib/v/parser/orm.v index cf35498507..b22105c077 100644 --- a/vlib/v/parser/orm.v +++ b/vlib/v/parser/orm.v @@ -25,7 +25,7 @@ fn (mut p Parser) sql_expr() ast.Expr { } table_pos := p.tok.pos() - mut table_type := p.parse_type() // `User` + table_type := p.parse_type() // `User` mut where_expr := ast.empty_expr has_where := p.tok.kind == .name && p.tok.lit == 'where'