Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Dec 4, 2023
1 parent 2515281 commit 40f2abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/cs3iface.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def readfile(endpoint, filepath, userid, lockid):

# Download
try:
protocol = [p for p in res.protocols if p.protocol == "simple" or p.protocol == "spaces"][0]
protocol = [p for p in res.protocols if p.protocol in ["simple", "spaces"]][0]
headers = {
'x-access-token': userid,
'x-reva-transfer': protocol.token # needed if the downloads pass through the data gateway in reva
Expand Down Expand Up @@ -460,7 +460,7 @@ def writefile(endpoint, filepath, userid, content, lockmd, islock=False):

# Upload
try:
protocol = [p for p in res.protocols if p.protocol == "simple" or p.protocol == "spaces"][0]
protocol = [p for p in res.protocols if p.protocol in ["simple", "spaces"]][0]
headers = {
'x-access-token': userid,
'Upload-Length': size,
Expand Down

0 comments on commit 40f2abb

Please sign in to comment.