mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
tools: fix warnings in v reduce
(#23709)
This commit is contained in:
parent
2f700c04b7
commit
81a2e7a772
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue