Skip to content

Commit

Permalink
refactor: remove module level global statement (#34)
Browse files Browse the repository at this point in the history
The global statement is used to specify that the assignment to that name is an assignment to the variable in the global (module) scope, rather than in the local scope. At the module level, this statement is redundant because the local scope and global scope are the same. It is recommended to remove the `global` statement.

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] authored Jan 9, 2024
1 parent a58acc7 commit 0cff1e5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/plugins/waifu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ async def check_divorce_rule(event):

# 分手
if waifu_cd_bye > -1:
global cd_bye
cd_bye = {}
bye = on_command(
"离婚",
Expand Down

0 comments on commit 0cff1e5

Please sign in to comment.