Skip to content

Commit c7c42e8

Browse files
committed
fix: removes test code
1 parent cd9a72e commit c7c42e8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app-config-node/src/environment.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,14 @@ export function currentEnvironment(...args: any[]): string | undefined {
8282
if (args[0]) {
8383
environmentAliases = args[0] as EnvironmentAliases;
8484
logger.warn('Detected deprecated usage of currentEnvironment');
85-
throw new Error(JSON.stringify(args[0]));
8685
}
8786

8887
if (Array.isArray(args[1])) {
8988
environmentSourceNames = args[1] as string[];
9089
logger.warn('Detected deprecated usage of currentEnvironment');
91-
throw new Error(JSON.stringify(args[0]));
9290
} else if (typeof args[1] === 'string') {
9391
environmentSourceNames = [args[1]];
9492
logger.warn('Detected deprecated usage of currentEnvironment');
95-
throw new Error(JSON.stringify(args[0]));
9693
}
9794
}
9895

0 commit comments

Comments
 (0)