mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
style: auto-fix linting issues
This commit is contained in:
parent
f0487fdb0b
commit
e5e3beebac
1 changed files with 4 additions and 5 deletions
|
|
@ -185,7 +185,7 @@ def _detect_export_style(source_code: str, identifier: str) -> str | None:
|
|||
for match in _DEFAULT_CLASS_PATTERN.finditer(normalized):
|
||||
if match.group(1) == identifier:
|
||||
return "default"
|
||||
|
||||
|
||||
for match in _DEFAULT_FUNC_PATTERN.finditer(normalized):
|
||||
if match.group(1) == identifier:
|
||||
return "default"
|
||||
|
|
@ -194,20 +194,19 @@ def _detect_export_style(source_code: str, identifier: str) -> str | None:
|
|||
for match in _NAMED_CLASS_PATTERN.finditer(normalized):
|
||||
if match.group(1) == identifier:
|
||||
return "named"
|
||||
|
||||
|
||||
for match in _NAMED_FUNC_PATTERN.finditer(normalized):
|
||||
if match.group(1) == identifier:
|
||||
return "named"
|
||||
|
||||
|
||||
for match in _NAMED_CONST_PATTERN.finditer(normalized):
|
||||
if match.group(1) == identifier:
|
||||
return "named"
|
||||
|
||||
|
||||
for match in _NAMED_BRACES_PATTERN.finditer(normalized):
|
||||
if match.group(1) == identifier:
|
||||
return "named"
|
||||
|
||||
|
||||
return None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue