File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- function getResponseHeader(response: AxiosResponse<any >, responseHeader?: string): string | undefined {
2
- if (responseHeader) {
3
- const content = response.headers[responseHeader];
4
- if (isString(content)) {
5
- return content;
6
- }
7
- }
8
- return;
9
- }
1
+ const getResponseHeader = (response: AxiosResponse<any >, responseHeader?: string): string | undefined => {
2
+ if (responseHeader) {
3
+ const content = response.headers[responseHeader];
4
+ if (isString(content)) {
5
+ return content;
6
+ }
7
+ }
8
+ return undefined ;
9
+ };
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function getFormData(options: ApiRequestOptions): FormData | undefined {
20
20
}
21
21
});
22
22
23
- return formData;
24
- }
25
- return;
26
- }
23
+ return formData;
24
+ }
25
+ return undefined ;
26
+ };
You can’t perform that action at this time.
0 commit comments