1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

check unused and unmodified vars in all modules, not just main

This commit is contained in:
Alexander Medvednikov
2019-12-06 15:24:53 +03:00
parent bdaa421e8a
commit c8d111924d
31 changed files with 133 additions and 119 deletions

View File

@ -260,7 +260,7 @@ fn escape(s string, mode EncodingMode) string {
return s
}
mut buf := [byte(0)].repeat(64)
buf := [byte(0)].repeat(64)
mut t := []byte
required := s.len + 2*hex_count
@ -677,7 +677,7 @@ fn (u mut URL) set_path(p string) ?bool {
// reading u.raw_path directly.
fn (u &URL) escaped_path() string {
if u.raw_path != '' && valid_encoded_path(u.raw_path) {
p := unescape(u.raw_path, .encode_path)
unescape(u.raw_path, .encode_path) or { return '' }
return u.raw_path
}
if u.path == '*' {