Skip to content

Commit a8d0d73

Browse files
Mohit TejaniMohit Tejani
authored andcommitted
fix lint error in request.ts
1 parent 1679c35 commit a8d0d73

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/components/request.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ export abstract class AbstractRequest<ResponseType, ServiceResponse extends obje
123123
if (headers) request.headers = headers;
124124

125125
// Attach body (if required).
126-
if (request.method === TransportMethod.POST || request.method === TransportMethod.PATCH || request.method === TransportMethod.PUT) {
126+
if (
127+
request.method === TransportMethod.POST ||
128+
request.method === TransportMethod.PATCH ||
129+
request.method === TransportMethod.PUT
130+
) {
127131
const [body, formData] = [this.body, this.formData];
128132
if (formData) request.formData = formData;
129133
if (body) request.body = body;

0 commit comments

Comments
 (0)