Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Refactor useless else block in the loop #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Stella/database/blocklists_mongo.py
Original file line number Diff line number Diff line change
@@ -149,8 +149,8 @@ def get_blocklist_reason(chat_id, blocklist_text):
if bl_text == blocklist_text:
blocklist_reason = bl_data['blocklist_reason']
return blocklist_reason
else:
return None
return None
else:
return Nones

4 changes: 2 additions & 2 deletions Stella/helper/button_gen.py
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ def button_markdown_parser(text):
else:
text_data += markdown_note[prev:to_check]
prev = match.start(1) - 1
else:
text_data += markdown_note[prev:]
text_data += markdown_note[prev:]

return text_data, buttons