Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
js: always use a base for parseInt()
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed May 1, 2015
1 parent 03c20d0 commit 2cfc326
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/scripts/receiver/supervisor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ define('supervisor', (function(window) {
if (!mo) {
return null;
}
return parseInt(mo[1]);
return parseInt(mo[1], 10);
})
.filter(function(item) { return item !== null; });
if (timeouts.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion lib/api/rest/dashboards.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = function(app) {
rank === undefined) {
return dashboard;
}
rank = parseInt(rank);
rank = parseInt(rank, 10);
return group.moveDashboard(dashboard, rank);
});
})
Expand Down

0 comments on commit 2cfc326

Please sign in to comment.