Skip to content

Commit 91a5146

Browse files
Saga4KRRT7
authored andcommitted
fix_duplication_suggestion_issue (#285)
1 parent 510ad68 commit 91a5146

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

codeflash/discovery/functions_to_optimize.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,12 +476,14 @@ def filter_functions(
476476
if blocklist_funcs:
477477
functions_tmp = []
478478
for function in _functions:
479-
if not (
479+
if (
480480
function.file_path.name in blocklist_funcs
481481
and function.qualified_name in blocklist_funcs[function.file_path.name]
482482
):
483+
# This function is in blocklist, we can skip it
483484
blocklist_funcs_removed_count += 1
484485
continue
486+
# This function is NOT in blocklist. we can keep it
485487
functions_tmp.append(function)
486488
_functions = functions_tmp
487489

0 commit comments

Comments
 (0)