File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -120,15 +120,15 @@ class Client extends ESAPI {
120
120
maxCompressedResponseSize : null
121
121
} , opts )
122
122
123
- if ( options . maxResponseSize !== null && options . maxResponseSize > buffer . constants . MAX_STRING_LENGTH ) {
123
+ if ( options . maxResponseSize != null && options . maxResponseSize > buffer . constants . MAX_STRING_LENGTH ) {
124
124
throw new ConfigurationError ( `The maxResponseSize cannot be bigger than ${ buffer . constants . MAX_STRING_LENGTH } ` )
125
125
}
126
126
127
- if ( options . maxCompressedResponseSize !== null && options . maxCompressedResponseSize > buffer . constants . MAX_LENGTH ) {
127
+ if ( options . maxCompressedResponseSize != null && options . maxCompressedResponseSize > buffer . constants . MAX_LENGTH ) {
128
128
throw new ConfigurationError ( `The maxCompressedResponseSize cannot be bigger than ${ buffer . constants . MAX_LENGTH } ` )
129
129
}
130
130
131
- if ( options . caFingerprint !== null && isHttpConnection ( opts . node || opts . nodes ) ) {
131
+ if ( options . caFingerprint != null && isHttpConnection ( opts . node || opts . nodes ) ) {
132
132
throw new ConfigurationError ( 'You can\'t configure the caFingerprint with a http connection' )
133
133
}
134
134
You can’t perform that action at this time.
0 commit comments