Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit b52044e

Browse files
Update src/utils/cli-utils.ts
1 parent c5e158e commit b52044e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/cli-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const copyToClipBoardUtility = (str: string): ((e: SyntheticEvent<HTMLEle
2222

2323
export function getCLISetConfigRegistry(command: string, scope: string, registryUrl: string): string {
2424
// if there is a scope defined there needs to be a ":" separator between the scope and the registry
25-
return `${command} ${scope}${!!scope ? ':' : ''}registry ${registryUrl}`;
25+
return `${command} ${scope}${scope !== '' ? ':' : ''}registry ${registryUrl}`;
2626
}
2727

2828
export function getCLISetRegistry(command: string, registryUrl: string): string {

0 commit comments

Comments
 (0)