Skip to content

Commit

Permalink
style: add some missing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jul 14, 2016
1 parent 984491a commit bcd8849
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions semver.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ function SemVer(version, loose) {
else
this.prerelease = m[4].split('.').map(function(id) {
if (/^[0-9]+$/.test(id)) {
var num = +id
var num = +id;
if (num >= 0 && num < MAX_SAFE_INTEGER)
return num
return num;
}
return id;
});
Expand Down Expand Up @@ -966,11 +966,11 @@ function replaceXRange(comp, loose) {
} else if (gtlt === '<=') {
// <=0.7.x is actually <0.8.0, since any 0.7.x should
// pass. Similarly, <=7.x is actually <8.0.0, etc.
gtlt = '<'
gtlt = '<';
if (xm)
M = +M + 1
M = +M + 1;
else
m = +m + 1
m = +m + 1;
}

ret = gtlt + M + '.' + m + '.' + p;
Expand Down

0 comments on commit bcd8849

Please sign in to comment.