Don't detect empty strings.

This commit is contained in:
Sam Rose 2024-07-03 15:35:46 +01:00
parent 253110ac6f
commit d9b94c1dcf
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ export function stringContainsSecret(str: string) {
for (const key of SECRETS) { for (const key of SECRETS) {
const value = environment[key] const value = environment[key]
if (typeof value !== "string") { if (typeof value !== "string" || value === "") {
continue continue
} }