Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 8, 2025
1 parent 9500100 commit ca394dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tools/vvet/analysis.v
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ fn (mut vt Vet) repeated_code(expr ast.Expr) {
ast.CallExpr {
lock vt.analysis.repeated {
if expr.is_static_method || expr.is_method {
vt.analysis.repeated['${expr.left}.${expr.name}(${expr.args})'][vt.file] << expr.pos
vt.analysis.repeated['${expr.left}.${expr.name}(${expr.args.map(it.str()).join(', ')})'][vt.file] << expr.pos
} else {
vt.analysis.repeated['${expr.mod}.${expr.name}(${expr.args})'][vt.file] << expr.pos
vt.analysis.repeated['${expr.mod}.${expr.name}(${expr.args.map(it.str()).join(', ')})'][vt.file] << expr.pos
}
}
}
Expand Down

0 comments on commit ca394dc

Please sign in to comment.