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, 2023
1 parent a6c4fa5 commit 2786f46
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions postgrest/base_request_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,7 @@ def from_http_request_response(
try:
data = request_response.json()
except JSONDecodeError:
if len(request_response.text) > 0:
data = request_response.text
else:
data = []
data = request_response.text if len(request_response.text) > 0 else []
return cls[_ReturnT](data=data, count=count) # type: ignore

@classmethod
Expand Down

0 comments on commit 2786f46

Please sign in to comment.