Skip to content

Commit

Permalink
removed json parse from axios response
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Oct 15, 2023
1 parent 2c95a93 commit 586724e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ autoUpdater.logger.transports.file.level = 'info';
async function fetchReleaseNotes(version) {
try {
const response = await axios.get(`https://api.github.com/repos/Mattk70/Chirpity-Electron/releases/latest`);
const release = JSON.parse(response);
if (release.data && release.data.body) {
if (response.data && response.data.body) {
return response.data.body;
}
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chirpity",
"version": "0.9.9",
"version": "0.9.10",
"description": "Chirpity Nocmig",
"main": "main.js",
"scripts": {
Expand Down

1 comment on commit 586724e

@vercel
Copy link

@vercel vercel bot commented on 586724e Oct 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.