Skip to content

Commit ad023d4

Browse files
committed
Updated check to only look at top-level files/directories
1 parent da1ba10 commit ad023d4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

adabot/lib/circuitpython_library_validators.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -776,10 +776,6 @@ def __check_lib_name(
776776
if name_rebuilt: # avoid adding things like 'simpletest.py' -> ''
777777
file_names.add(name_rebuilt)
778778

779-
if "/" in name_rebuilt:
780-
for i in name_rebuilt.split("/"):
781-
file_names.add(i)
782-
783779
return any(name.startswith(repo_name) for name in file_names)
784780

785781
lib_name_start = repo["name"].rfind("CircuitPython_") + 14

0 commit comments

Comments
 (0)