File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
packages/mongodb-memory-server-core/src/util Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,15 @@ import {
1515
1616findPackageJson ( process . env . INIT_CWD ) ;
1717
18- const envDisablePostinstall : string | undefined = resolveConfig (
19- ResolveConfigVariables . DISABLE_POSTINSTALL
20- ) ;
21-
22- if ( ! ! envToBool ( envDisablePostinstall ) ) {
18+ if ( ! ! envToBool ( resolveConfig ( ResolveConfigVariables . DISABLE_POSTINSTALL ) ) ) {
2319 console . log (
2420 'Mongodb-Memory-Server* postinstall skipped because "DISABLE_POSTINSTALL" was set to an truthy value'
2521 ) ;
2622 process . exit ( 0 ) ;
2723}
2824
29- const envSystemBinary : string | undefined = resolveConfig ( ResolveConfigVariables . SYSTEM_BINARY ) ;
30-
3125// value is ensured to be either an string (with more than 0 length) or being undefined
32- if ( typeof envSystemBinary === 'string' ) {
26+ if ( typeof resolveConfig ( ResolveConfigVariables . SYSTEM_BINARY ) === 'string' ) {
3327 console . log ( 'Mongodb-Memory-Server* postinstall skipped because "SYSTEM_BINARY" was provided' ) ;
3428 process . exit ( 0 ) ;
3529}
You can’t perform that action at this time.
0 commit comments