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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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