Skip to content

Commit 94dbc80

Browse files
author
xinshen
committed
Remove unnecessary comparaison ('== True' or '!= None')
1 parent 8958bde commit 94dbc80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/notifiers/webhook_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def notify(self, messages, chart_file):
3232

3333
data = {'messages': json.dumps(messages)}
3434

35-
if chart_file != None and os.path.exists(chart_file):
35+
if chart_file and os.path.exists(chart_file):
3636
files = {'chart': open(chart_file, 'rb')}
3737

3838
if self.username and self.password:

0 commit comments

Comments
 (0)