Make core and vendor adhere to -vet, -strict-style, and -disallow-do

This commit is contained in:
gingerBill
2021-09-11 16:40:19 +01:00
parent 93593f4721
commit 344abf2cb2
48 changed files with 218 additions and 189 deletions
+1 -2
View File
@@ -499,7 +499,7 @@ visit_attributes :: proc(p: ^Printer, attributes: [dynamic]^ast.Attribute) {
return
}
for attribute, i in attributes {
for attribute in attributes {
move_line_limit(p, attribute.pos, 1)
push_generic_token(p, .At, 0)
@@ -1389,7 +1389,6 @@ visit_proc_type :: proc(p: ^Printer, proc_type: ast.Proc_Type, is_proc_lit := fa
push_generic_token(p, .Gt, 0)
use_parens := false
use_named := false
if len(proc_type.results.list) > 1 {
use_parens = true