Skip to content

Commit b695086

Browse files
committed
refactor(flow): simplify list comprehension in filter_daily_validation_codes
- Removed unnecessary line breaks in the suffixes list comprehension - Maintained the same functionality for filtering daily validation codes - Improved code readability by condensing the list processing logic
1 parent 7ac022e commit b695086

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

flowllm/lite/flow/ts_test_flow.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,7 @@ def validate_daily_codes(self, api_name: str, actual_codes: list[str]) -> None:
228228
)
229229

230230
def filter_daily_validation_codes(self, codes: list[str]) -> list[str]:
231-
suffixes = [
232-
item.strip()
233-
for item in self.config.daily_validation_exclude_suffixes.split(",")
234-
if item.strip()
235-
]
231+
suffixes = [item.strip() for item in self.config.daily_validation_exclude_suffixes.split(",") if item.strip()]
236232
return [code for code in codes if not suffixes or not code.endswith(tuple(suffixes))]
237233

238234
def download_daily(self) -> None:

0 commit comments

Comments
 (0)