Skip to content

Commit

Permalink
fix: success_rate should be a number
Browse files Browse the repository at this point in the history
  • Loading branch information
ssmirr committed Feb 13, 2019
1 parent e670e19 commit bda4f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Compatible {
}

static getSuccessRate(candidate_updates, successful_updates) {
return (successful_updates / candidate_updates).toFixed(2);
return +(successful_updates / candidate_updates).toFixed(2);
}

static async getUpdateData(pkgName, pkgManager) {
Expand Down

0 comments on commit bda4f6d

Please sign in to comment.