mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Remove unnecessary code
This commit is contained in:
@@ -8,9 +8,6 @@ export const sendRequest = async (
|
||||
body: BodyInit | null | undefined,
|
||||
method: TMethodRequest = 'GET',
|
||||
): Promise<TResponse> => {
|
||||
const controller = new AbortController();
|
||||
const signal = controller.signal;
|
||||
|
||||
const response = await fetch(BASE_URL + path, {
|
||||
method,
|
||||
body,
|
||||
@@ -19,7 +16,6 @@ export const sendRequest = async (
|
||||
'Accept': 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
signal,
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user