Skip to content

Commit

Permalink
perf: 初始化配置文件后直接返回 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnserf-Seed committed Apr 13, 2024
1 parent e6de4d4 commit 0128886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion f2/apps/douyin/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def douyin(
# 如果初始化配置文件,则与更新配置文件互斥
if init_config and not update_config:
main_manager.generate_config("douyin", init_config)
# return
return
elif init_config:
raise click.UsageError(_("不能同时初始化和更新配置文件"))
# 如果没有初始化配置文件,但是更新配置文件,则需要提供配置文件路径
Expand Down
2 changes: 1 addition & 1 deletion f2/apps/tiktok/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def tiktok(
# 如果初始化配置文件,则与更新配置文件互斥
if init_config and not update_config:
main_manager.generate_config("tiktok", init_config)
# return
return
elif init_config:
raise click.UsageError(_("不能同时初始化和更新配置文件"))
# 如果没有初始化配置文件,但是更新配置文件,则需要提供配置文件路径
Expand Down

0 comments on commit 0128886

Please sign in to comment.