Skip to content

Commit

Permalink
improvment from comment
Browse files Browse the repository at this point in the history
  • Loading branch information
teodor2312 committed Feb 6, 2024
1 parent 2833a60 commit 23117c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/synthetics/utils/public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ export const getTestAndOverrideConfig = async (
): Promise<NotFound | Skipped | TestWithOverride> => {
const normalizedId = id.match(PUBLIC_ID_REGEX)?.[0]

if (normalizedId === undefined) {
if (!normalizedId) {
throw new CriticalError('INVALID_CONFIG', `No valid public ID found in: \`${id}\``)
}

Expand Down

0 comments on commit 23117c0

Please sign in to comment.