From 422ba3a3ced10149e9dfeeff98f30947dca6f58f Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Mon, 23 Sep 2019 22:11:05 +1000 Subject: [PATCH] compiler: unused module check always --- compiler/parser.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/parser.v b/compiler/parser.v index 32c4410322..7609327510 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -276,9 +276,9 @@ fn (p mut Parser) parse(pass Pass) { if p.is_script && !p.pref.is_test { p.set_current_fn( MainFn ) p.check_unused_variables() - if !p.first_pass() && !p.pref.is_repl { - p.check_unused_imports() - } + } + if !p.first_pass() && !p.pref.is_repl { + p.check_unused_imports() } if false && !p.first_pass() && p.fileis('main.v') { out := os.create('/var/tmp/fmt.v') or {