whitespace

This commit is contained in:
hay-kot 2021-08-09 17:45:09 -08:00
parent aa3b732cb0
commit 460f508f79

View file

@ -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 };