(a: string, b: string)
| 166 | function checkTLSOptions(allOptions: CaseInsensitiveMap): void { |
| 167 | if (!allOptions) return; |
| 168 | const check = (a: string, b: string) => { |
| 169 | if (allOptions.has(a) && allOptions.has(b)) { |
| 170 | throw new MongoAPIError(`The '${a}' option cannot be used with the '${b}' option`); |
| 171 | } |
| 172 | }; |
| 173 | check('tlsInsecure', 'tlsAllowInvalidCertificates'); |
| 174 | check('tlsInsecure', 'tlsAllowInvalidHostnames'); |
| 175 | } |