mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
tools: fix warnings in v reduce
(#23709)
This commit is contained in:
parent
2f700c04b7
commit
81a2e7a772
@ -353,5 +353,7 @@ fn show_code_stats(code string, params ShowParams) {
|
||||
}
|
||||
|
||||
fn warn_on_false(res bool, what string, loc string) {
|
||||
log.warn('${what} is false, at ${loc}')
|
||||
if !res {
|
||||
log.warn('${what} is false, at ${loc}')
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user