Skip to content

Commit 759016b

Browse files
authored
chore: Update sdkKey handling. (#8)
1 parent c65a760 commit 759016b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ function printValueAndBanner(flagValue: boolean) {
2727
if (flagValue) showBanner();
2828
}
2929

30-
if (!sdkKey) {
31-
console.log('*** Please edit index.js to set sdkKey to your LaunchDarkly SDK key first.');
30+
if (sdkKey === 'your-sdk-key' || !sdkKey) {
31+
console.log('*** Please specify an SDK key by editing index.ts or setting the LAUNCHDARKLY_SDK_KEY environment variable.');
3232
process.exit(1);
3333
}
3434

0 commit comments

Comments
 (0)