Skip to content

Commit

Permalink
chore: cleanup from review
Browse files Browse the repository at this point in the history
 - use inline if/else to keep line coverage up
  • Loading branch information
justindujardin committed Jun 26, 2021
1 parent e3102db commit 9e69249
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pathy/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,9 @@ class BucketClientS3(BucketClient):

@property
def client_params(self) -> Dict[str, Any]:
if self._session is None:
return dict()
session: Any = self._session
return dict(client=session.client("s3"))
result: Any = dict() if session is None else dict(client=session.client("s3"))
return result

def __init__(self, **kwargs: Any) -> None:
self.recreate(**kwargs)
Expand Down

0 comments on commit 9e69249

Please sign in to comment.