mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
style: parenthesize chained boolean operators
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -62,7 +62,7 @@ async def web_ui(file_path: str):
|
||||
# which results with warnings in Firefox 66 on Windows
|
||||
# Ref. gns3-server#1559
|
||||
_, ext = os.path.splitext(static)
|
||||
mimetype = ext == ".js" and "application/javascript" or None
|
||||
mimetype = (ext == ".js" and "application/javascript") or None
|
||||
return FileResponse(static, media_type=mimetype)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user