Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tofarr committed Nov 22, 2024
1 parent 4f30b38 commit ef1c78a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openhands/storage/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def read(self, path: str) -> str:
raise FileNotFoundError(f'Failed to read from S3 at path {path}: {e}')

def list(self, path: str) -> list[str]:
if path and path != "/" and not path.endswith("/"):
path += "/"
if path and path != '/' and not path.endswith('/'):
path += '/'
try:
return [
obj.object_name for obj in self.client.list_objects(self.bucket, path)
Expand Down

0 comments on commit ef1c78a

Please sign in to comment.