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

@@ -293,7 +293,7 @@ fn handle_conn<T>(conn net.Socket, app mut T) {
}
fn (ctx mut Context) parse_form(s string) {
if !(ctx.req.method in methods_with_form) {
if ctx.req.method !in methods_with_form {
return
}
//pos := s.index('\r\n\r\n')