| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -161,11 +161,9 @@ function configSecureContext(context, options = {}, name = 'options') { | |||
| 161 | 161 | for (let i = 0; i < key.length; ++i) { | |
| 162 | 162 | const val = key[i]; | |
| 163 | 163 | const pem = ( | |
| 164 | - val !== undefined && val !== null && | ||
| 165 | - val.pem !== undefined ? val.pem : val); | ||
| 164 | + val?.pem !== undefined ? val.pem : val); | ||
| 166 | 165 | const pass = ( | |
| 167 | - val !== undefined && val !== null && | ||
| 168 | - val.passphrase !== undefined ? val.passphrase : passphrase); | ||
| 166 | + val?.passphrase !== undefined ? val.passphrase : passphrase); | ||
| 169 | 167 | setKey(context, pem, pass, name); | |
| 170 | 168 | } | |
| 171 | 169 | } else { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments