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

checker: do not allow copying any map lvalue (#8662)

This commit is contained in:
Nick Treleaven
2021-02-16 11:46:12 +00:00
committed by GitHub
parent 51c286df5a
commit 01aa09d515
6 changed files with 20 additions and 23 deletions

View File

@@ -163,8 +163,8 @@ fn fetch_with_method(method Method, url string, _config FetchConfig) ?Response {
fn build_url_from_fetch(_url string, config FetchConfig) ?string {
mut url := urllib.parse(_url) ?
params := config.params
if params.keys().len == 0 {
params := unsafe {config.params}
if params.len == 0 {
return url.str()
}
mut pieces := []string{}