Skip to content

Commit 78addf2

Browse files
committed
Fix ftdetect comparison logic
Signed-off-by: Julian Orchard <[email protected]>
1 parent 1c887c3 commit 78addf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vint/linting/policy/prohibit_autocmd_with_no_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def is_valid(self, node, lint_context):
2828
# https://github.com/Vimjas/vint/issues/359
2929
path_obj = lint_context.get("path")
3030
if path_obj and getattr(path_obj, "parts", None):
31-
if any(part in ("ftdetect") for part in path_obj.parts):
31+
if "ftdetect" in path_obj.parts:
3232
return True
3333

3434
# noed.ea.cmd is empty when line jump command such as 1

0 commit comments

Comments
 (0)