Skip to content

Commit

Permalink
Indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bneijt committed Apr 3, 2022
1 parent f0fce41 commit 264e0a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ipfs_video_kodi/ipfs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ def resolve_ipns(self, cid):
def list(self, path):
"""Get the directory content of the given path (ipns/hash or plain cid)"""
assert type(path) == str, "Argument path must be a string"
cid = self.resolve_ipns(path[len("/ipns/") :]) if path.startswith("/ipns/") else path
cid = (
self.resolve_ipns(path[len("/ipns/") :])
if path.startswith("/ipns/")
else path
)

if cid in self._cache:
if len(self._cache) > MAX_CACHE_SIZE:
Expand Down

0 comments on commit 264e0a3

Please # to comment.