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 Jan 14, 2024
1 parent 7dfdcdd commit 7cd49ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions supabase/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ async def create(
access_token: Union[str | None] = None,
options: ClientOptions = ClientOptions(),
):
client = cls(supabase_url, supabase_key, access_token, options)
# no need i think
# client._auth_token = await client._get_token_header()
return client
return cls(supabase_url, supabase_key, access_token, options)

def table(self, table_name: str) -> AsyncRequestBuilder:
"""Perform a table operation.
Expand Down
5 changes: 1 addition & 4 deletions supabase/_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ def create(
access_token: Union[str | None] = None,
options: ClientOptions = ClientOptions(),
):
client = cls(supabase_url, supabase_key, options)
# no need i think
# client._auth_token = await client._get_token_header()
return client
return cls(supabase_url, supabase_key, options)

def table(self, table_name: str) -> SyncRequestBuilder:
"""Perform a table operation.
Expand Down

0 comments on commit 7cd49ef

Please sign in to comment.