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

all: change 'if !(a in b)' to 'if a !in b' (#11330)

This commit is contained in:
yuyi
2021-08-29 16:55:18 +08:00
committed by GitHub
parent 118c5fdcd8
commit 8be2be8311
5 changed files with 5 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ fn (mut ctx CancelContext) cancel(remove_from_parent bool, err IError) {
}
ctx.mutex.@lock()
if !(ctx.err is none) {
if ctx.err !is none {
ctx.mutex.unlock()
// already canceled
return