Skip to content

Commit 6dec573

Browse files
committed
fix: resolve SonarCloud issues
1 parent 74c3959 commit 6dec573

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

code/src/http/httpClient.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -412,11 +412,11 @@ export default class HttpClient {
412412
* Process a PATCH request to the given URL.
413413
*
414414
* @param {string} url
415-
* @param {FormData | object | string} data
415+
* @param {object | string} data
416416
*
417417
* @returns {Promise<Response>}
418418
*/
419-
public patch(url: string, data: FormData | object | string): Promise<Response> {
419+
public patch(url: string, data: object | string): Promise<Response> {
420420
this.withUrl(url);
421421
this.withBody(data);
422422

@@ -427,11 +427,11 @@ export default class HttpClient {
427427
* Process a POST request to the given URL.
428428
*
429429
* @param {string} url
430-
* @param {FormData | object | string} data
430+
* @param {object | string} data
431431
*
432432
* @returns {Promise<Response>}
433433
*/
434-
public post(url: string, data: FormData | object | string): Promise<Response> {
434+
public post(url: string, data: object | string): Promise<Response> {
435435
this.withUrl(url);
436436
this.withBody(data);
437437

@@ -442,11 +442,11 @@ export default class HttpClient {
442442
* Process a PUT request to the given URL.
443443
*
444444
* @param {string} url
445-
* @param {FormData | object | string} data
445+
* @param {object | string} data
446446
*
447447
* @returns {Promise<Response>}
448448
*/
449-
public put(url: string, data: FormData | object | string): Promise<Response> {
449+
public put(url: string, data: object | string): Promise<Response> {
450450
this.withUrl(url);
451451
this.withBody(data);
452452

@@ -622,11 +622,11 @@ export default class HttpClient {
622622
/**
623623
* Attach body data to the request.
624624
*
625-
* @param {FormData | object | string} body
625+
* @param {object | string} body
626626
*
627627
* @returns {void}
628628
*/
629-
private withBody(body: FormData | object | string): void {
629+
private withBody(body: object | string): void {
630630
this.setBody(body);
631631
}
632632

0 commit comments

Comments
 (0)