Skip to content

Commit 8ea84b4

Browse files
committed
leftover
1 parent 15e83a5 commit 8ea84b4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

clients/algoliasearch-client-javascript/packages/client-common/src/transporter/createTransporter.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,7 @@ export function createTransporter({
247247
* A read request is either a `GET` request, or a request that we make
248248
* via the `read` transporter (e.g. `search`).
249249
*/
250-
const isRead = Boolean(
251-
request.useReadTransporter || request.method === 'GET'
252-
);
253-
250+
const isRead = request.useReadTransporter || request.method === 'GET';
254251
if (!isRead) {
255252
/**
256253
* On write requests, no cache mechanisms are applied, and we
@@ -273,7 +270,7 @@ export function createTransporter({
273270
* request is "cacheable" - should be cached. Note that, once again,
274271
* the user can force this option.
275272
*/
276-
const cacheable = Boolean(requestOptions.cacheable || request.cacheable);
273+
const cacheable = requestOptions.cacheable || request.cacheable;
277274

278275
/**
279276
* If is not "cacheable", we immediately trigger the retryable request, no

0 commit comments

Comments
 (0)