Skip to content

Commit

Permalink
chore: else block
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Shelomentsev committed Dec 19, 2023
1 parent 43d8e18 commit 24dcbe2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mgmt-lambda/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ export async function getAuthSettings(secretManagerClient: SecretsManagerClient)
}
if (response.SecretString) {
return JSON.parse(response.SecretString)
} else {
throw new Error('secret is empty')
}
throw new Error('secret is empty')
} catch (error: any) {
throw new Error(`Unable to retrieve secret. ${error}`)
}
Expand Down

0 comments on commit 24dcbe2

Please sign in to comment.