From 4e31c2a3695e76ece634d4fbb3607cb5d69d8caa Mon Sep 17 00:00:00 2001 From: Alex Darigan <47497501+AlexDarigan@users.noreply.github.com> Date: Wed, 1 Sep 2021 14:32:55 +0100 Subject: [PATCH] Fix Collecting Tests in Root --- addons/WAT/filesystem/directory.gd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/WAT/filesystem/directory.gd b/addons/WAT/filesystem/directory.gd index ad41a02b..a05c18ce 100644 --- a/addons/WAT/filesystem/directory.gd +++ b/addons/WAT/filesystem/directory.gd @@ -20,9 +20,8 @@ func get_tests() -> Array: if is_root: for subdir in nested_subdirs: requested += subdir.get_tests() - else: - for script in tests: - requested += script.get_tests() + for script in tests: + requested += script.get_tests() return requested func is_empty() -> bool: