Skip to content

Commit

Permalink
fix: 错误的判空变量
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Nov 12, 2023
1 parent 76d7db8 commit 89c83eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/qqbot/cmds/plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def closure():
else:
plugin_path_name = plugin_host.get_plugin_path_name_by_plugin_name(ctx.crt_params[0])

if ctx.crt_params[0] is not None:
if plugin_path_name is not None:
plugin_host.update_plugin(ctx.crt_params[0])
updated.append(ctx.crt_params[0])
else:
Expand Down

0 comments on commit 89c83eb

Please sign in to comment.