File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
clients/algoliasearch-client-javascript/packages/client-common/src/transporter Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -247,10 +247,7 @@ export function createTransporter({
247
247
* A read request is either a `GET` request, or a request that we make
248
248
* via the `read` transporter (e.g. `search`).
249
249
*/
250
- const isRead = Boolean (
251
- request . useReadTransporter || request . method === 'GET'
252
- ) ;
253
-
250
+ const isRead = request . useReadTransporter || request . method === 'GET' ;
254
251
if ( ! isRead ) {
255
252
/**
256
253
* On write requests, no cache mechanisms are applied, and we
@@ -273,7 +270,7 @@ export function createTransporter({
273
270
* request is "cacheable" - should be cached. Note that, once again,
274
271
* the user can force this option.
275
272
*/
276
- const cacheable = Boolean ( requestOptions . cacheable || request . cacheable ) ;
273
+ const cacheable = requestOptions . cacheable || request . cacheable ;
277
274
278
275
/**
279
276
* If is not "cacheable", we immediately trigger the retryable request, no
You can’t perform that action at this time.
0 commit comments