1
- /* Copyright (c) 2015, 2023 , Oracle and/or its affiliates. */
1
+ /* Copyright (c) 2015, 2024 , Oracle and/or its affiliates. */
2
2
3
3
/******************************************************************************
4
4
*
@@ -65,10 +65,8 @@ if (process.env.NODE_ORACLEDB_CONNECTIONSTRING) {
65
65
}
66
66
67
67
if ( process . env . NODE_ORACLEDB_EXTERNALAUTH ) {
68
- let eauth = process . env . NODE_ORACLEDB_EXTERNALAUTH ;
69
- eauth = String ( eauth ) ;
70
- eauth = eauth . toLowerCase ( ) ;
71
- if ( eauth == 'true' ) {
68
+ const eauth = process . env . NODE_ORACLEDB_EXTERNALAUTH ;
69
+ if ( eauth . toLowerCase ( ) === 'true' ) {
72
70
config . test . externalAuth = true ;
73
71
}
74
72
}
@@ -90,19 +88,15 @@ if (process.env.NODE_ORACLEDB_PASSWORD) {
90
88
}
91
89
92
90
if ( process . env . NODE_ORACLEDB_QA ) {
93
- let isQA = process . env . NODE_ORACLEDB_QA ;
94
- isQA = String ( isQA ) ;
95
- isQA = isQA . toLowerCase ( ) ;
96
- if ( isQA == 'true' ) {
91
+ const isQA = process . env . NODE_ORACLEDB_QA ;
92
+ if ( isQA . toLowerCase ( ) === 'true' ) {
97
93
config . test . NODE_ORACLEDB_QA = true ;
98
94
}
99
95
}
100
96
101
97
if ( process . env . NODE_ORACLEDB_DBA_PRIVILEGE ) {
102
- let priv = process . env . NODE_ORACLEDB_DBA_PRIVILEGE ;
103
- priv = String ( priv ) ;
104
- priv = priv . toLowerCase ( ) ;
105
- if ( priv == 'true' ) {
98
+ const priv = process . env . NODE_ORACLEDB_DBA_PRIVILEGE ;
99
+ if ( priv . toLowerCase ( ) == 'true' ) {
106
100
config . test . DBA_PRIVILEGE = true ;
107
101
}
108
102
}
@@ -132,10 +126,8 @@ if (process.env.NODE_ORACLEDB_PROXY_SESSION_USER) {
132
126
}
133
127
134
128
if ( process . env . NODE_PRINT_DEBUG_MESSAGE ) {
135
- let printDebugMsg = process . env . NODE_PRINT_DEBUG_MESSAGE ;
136
- printDebugMsg = String ( printDebugMsg ) ;
137
- printDebugMsg = printDebugMsg . toLowerCase ( ) ;
138
- if ( printDebugMsg == 'true' ) {
129
+ const printDebugMsg = process . env . NODE_PRINT_DEBUG_MESSAGE ;
130
+ if ( printDebugMsg . toLowerCase ( ) == 'true' ) {
139
131
config . test . printDebugMsg = true ;
140
132
}
141
133
}
0 commit comments