Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Sep 30, 2020
1 parent a82de2a commit 9f14bc5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions simplipy/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ def video_url(self, width=1280, params={"audioEncoding": "AAC"}) -> str:
:rtype: ``str``
"""
additionalParams = []
for param in params:
additionalParams.append("{}={}".format(param, params[param]))
additionalParams = ["{}={}".format(param, params[param]) for param in params]
additionalParamsUrl = ""
if len(additionalParams) > 0:
if additionalParams:
additionalParamsUrl = "&{}".format("&".join(additionalParams))

return "https://media.simplisafe.com/v1/{}/flv?x={}{}".format(
Expand Down

0 comments on commit 9f14bc5

Please sign in to comment.