Skip to content

Commit

Permalink
fix: remove error verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudioBioni committed Jul 12, 2024
1 parent cc0c4fe commit 88678c6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/services/user/userService.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ export const UserService = {
const { pets } = await response.json();
return pets;
} catch (error) {
if (error instanceof Error) {
return {
message: 'Status Error',
issue: error.message,
};
}
return error;
return `Ocorreu o seguinte erro: ${error}`;
}
},
};

0 comments on commit 88678c6

Please sign in to comment.