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

all: use a !in b instead of !(a in b)

This commit is contained in:
yuyi
2020-04-26 12:39:23 +08:00
committed by GitHub
parent 2b4ac0e63a
commit 541b058e90
19 changed files with 70 additions and 70 deletions

View File

@@ -92,7 +92,7 @@ fn main() {
}
mut cli_args_no_files := []string
for a in os.args {
if !(a in files) {
if a !in files {
cli_args_no_files << a
}
}

View File

@@ -364,7 +364,7 @@ fn resolve_dependencies(name, module_path string, module_names []string) {
mut deps := []string
// filter out dependencies that were already specified by the user
for d in vmod.deps {
if !(d in module_names) {
if d !in module_names {
deps << d
}
}