Skip to content

Commit

Permalink
remove unnecessary variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
AlabasterAxe committed Jul 18, 2024
1 parent 4472881 commit 4a54ca8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clients/js/src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ export class TokenAuthClientProvider implements ClientAuthProvider {
textCredentials: any,
headerType: TokenHeaderType = "AUTHORIZATION",
) {
const envVarTextCredentials = process.env.CHROMA_CLIENT_AUTH_CREDENTIALS;

const creds = textCredentials ?? envVarTextCredentials;
const creds = textCredentials ?? process.env.CHROMA_CLIENT_AUTH_CREDENTIALS;
if (creds === undefined) {
throw new Error(
"Credentials must be supplied via environment variable (CHROMA_CLIENT_AUTH_CREDENTIALS) or passed in as configuration.",
Expand Down

0 comments on commit 4a54ca8

Please sign in to comment.