Skip to content

Commit fa9bc3c

Browse files
committed
Changed method implementation
1 parent 3848b57 commit fa9bc3c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

redis/credentials.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,4 @@ def get_credentials(self):
5353
return (self.password,)
5454

5555
async def get_credentials_async(self) -> Union[Tuple[str], Tuple[str, str]]:
56-
if self.username:
57-
return self.username, self.password
58-
return (self.password,)
56+
return self.get_credentials()

0 commit comments

Comments
 (0)