Skip to content

Commit

Permalink
fix(v8): correct order of ternary (#513)
Browse files Browse the repository at this point in the history
Actually include patch number in the version string when there is a
patch number.
  • Loading branch information
targos committed Oct 21, 2020
1 parent 2c0cf83 commit 6dab341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/update-v8/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function getNodeV8Version(cwd) {
majorMinor: major * 10 + minor,
toString() {
return this.patch
? `${this.major}.${this.minor}.${this.build}`
: `${this.major}.${this.minor}.${this.build}.${this.patch}`;
? `${this.major}.${this.minor}.${this.build}.${this.patch}`
: `${this.major}.${this.minor}.${this.build}`;
}
};
} catch (e) {
Expand Down

0 comments on commit 6dab341

Please sign in to comment.