Skip to content

Commit 71db7f6

Browse files
committed
revert fto change
1 parent 711ee5e commit 71db7f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/discovery/functions_to_optimize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def get_all_replay_test_functions(
299299
if valid_function.qualified_name == function_name
300300
]
301301
)
302-
if len(filtered_list):
302+
if filtered_list:
303303
filtered_valid_functions[file_path] = filtered_list
304304

305305
return filtered_valid_functions
@@ -364,7 +364,7 @@ def visit_ClassDef(self, node: ast.ClassDef) -> None:
364364
):
365365
self.is_staticmethod = True
366366
return
367-
elif self.line_no:
367+
else:
368368
# If we have line number info, check if class has a static method with the same line number
369369
# This way, if we don't have the class name, we can still find the static method
370370
for body_node in node.body:

0 commit comments

Comments
 (0)