mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vfmt: remove unused variable check for vfmt
This commit is contained in:
parent
8be10ffbd6
commit
cc4090cc74
@ -192,7 +192,7 @@ pub fn (mut p Parser) open_scope() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn (mut p Parser) close_scope() {
|
pub fn (mut p Parser) close_scope() {
|
||||||
if !p.pref.is_repl {
|
if !p.pref.is_repl && !scanner.is_fmt {
|
||||||
for v in p.scope.unused_vars() {
|
for v in p.scope.unused_vars() {
|
||||||
if p.pref.is_prod {
|
if p.pref.is_prod {
|
||||||
p.error_with_pos('Unused variable: $v.name', v.pos)
|
p.error_with_pos('Unused variable: $v.name', v.pos)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user