Skip to content

Commit

Permalink
Remove unnecessary parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
thp authored Feb 15, 2024
1 parent fd39531 commit 60a257e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/urlwatch/mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def msg_plain(self, from_email, to_email, reply_to_email, subject, body):
msg['From'] = from_email
msg['To'] = to_email
msg['Date'] = email.utils.formatdate()
if (reply_to_email):
if reply_to_email:
msg['Reply-To'] = reply_to_email

return msg
Expand All @@ -66,7 +66,7 @@ def msg_html(self, from_email, to_email, reply_to_email, subject, body_text, bod
msg['From'] = from_email
msg['To'] = to_email
msg['Date'] = email.utils.formatdate()
if (reply_to_email):
if reply_to_email:
msg['Reply-To'] = reply_to_email

msg.attach(email.mime.text.MIMEText(body_text, 'plain', 'utf-8'))
Expand Down

0 comments on commit 60a257e

Please sign in to comment.