Skip to content

Commit

Permalink
fix: simplify return statement in AppDslService by removing unnecessa…
Browse files Browse the repository at this point in the history
…ry variable assignment

Signed-off-by: -LAN- <[email protected]>
  • Loading branch information
laipz8200 committed Dec 24, 2024
1 parent 8e81c22 commit 168926b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/services/app_dsl_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ def export_dsl(cls, app_model: App, include_secret: bool = False) -> str:
)
else:
cls._append_model_config_export_data(export_data, app_model)
dsl_data: str = yaml.dump(export_data, allow_unicode=True)
return dsl_data

return yaml.dump(export_data, allow_unicode=True)

@classmethod
def _append_workflow_export_data(cls, *, export_data: dict, app_model: App, include_secret: bool) -> None:
Expand Down

0 comments on commit 168926b

Please sign in to comment.