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

@@ -338,7 +338,7 @@ fn (mut ad AnchorData) check_link_target_match(fpath string, mut res CheckResult
}
}
for link, anchor_lists in ad.anchors {
if !(link in checked_headlines) {
if link !in checked_headlines {
if anchor_lists.len > 1 {
for anchor in anchor_lists {
line := match anchor {