Skip to content

Commit

Permalink
fixed code quality issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alimaktabi committed Oct 17, 2024
1 parent cdabbcb commit fbe32de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions telegram/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ def user_profile(self):

def perform_create(self, serializer: TelegramConnectionSerializer):
telegram_data = serializer.validated_data
is_verified = TelegramUtil().verify_login(telegram_data)

if is_verified:
if TelegramUtil().verify_login(telegram_data):
user_id = telegram_data["id"]

TelegramMessenger.get_instance().send_message(
Expand Down

0 comments on commit fbe32de

Please sign in to comment.