tools: fix warnings in v reduce (#23709)

This commit is contained in:
Eliyaan (Nopana) 2025-02-13 20:32:01 +01:00 committed by GitHub
parent 2f700c04b7
commit 81a2e7a772
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}')
}
}