Skip to content

Commit 4944030

Browse files
author
Xing Han Lu
committed
Disable W0612
1 parent 500c647 commit 4944030

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_percy_snapshot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def encode(name):
4747

4848
@app.callback(dash.dependencies.Output('page-content', 'children'),
4949
[dash.dependencies.Input('url', 'pathname')])
50-
def display_image(pathname):
50+
def display_image(pathname): # pylint: disable=W0612
5151
"""
5252
Assign the url path to return the image it represent. For example,
5353
to return "usage.png", you can visit localhost/usage.png.
@@ -56,9 +56,9 @@ def display_image(pathname):
5656
"""
5757
if not pathname or pathname == '/':
5858
return
59-
else:
60-
name = pathname.replace('/', '')
61-
return html.Img(id=name, src=encode(name))
59+
60+
name = pathname.replace('/', '')
61+
return html.Img(id=name, src=encode(name))
6262

6363
# Start the app
6464
self.startServer(app)

0 commit comments

Comments
 (0)