Skip to content

Commit

Permalink
refactor: remove unnecessary parentheses after keyword (#39)
Browse files Browse the repository at this point in the history
Extra parentheses in code can be removed for improved readability.  In the examples below, the first example is more readable than the second one.

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 41059dd commit f0a362e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/nonebot_plugin_githubcard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def match_link_parts(link):
async def github_handle(bot: Bot, event: GroupMessageEvent, state: T_State):
url = match_link_parts(event.get_plaintext())
imageUrl = await get_github_reposity_information(url)
if (imageUrl == "获取信息失败"):
if imageUrl == "获取信息失败":
raise AssertionError
await github.send(MessageSegment.image(imageUrl))

0 comments on commit f0a362e

Please sign in to comment.