whitespace
This commit is contained in:
parent
aa3b732cb0
commit
460f508f79
1 changed files with 0 additions and 2 deletions
|
@ -10,9 +10,7 @@ const request = {
|
|||
async safe<T>(funcCall: any, url: string, data: object = {}): Promise<RequestResponse<T>> {
|
||||
const response = await funcCall(url, data).catch(function (error: object) {
|
||||
console.log(error);
|
||||
|
||||
// Insert Generic Error Handling Here
|
||||
|
||||
return { response: null, error, data: null };
|
||||
});
|
||||
return { response, error: null, data: response.data };
|
||||
|
|
Loading…
Reference in a new issue