Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1529 from trufflesuite/bug-compiler-supplier
Browse files Browse the repository at this point in the history
Correct reduce error
  • Loading branch information
gnidan authored Dec 12, 2018
2 parents fbc1d43 + 0398f07 commit a1f7490
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/truffle-compile/compilerSupplier.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ const getMostRecentVersionOfCompiler = versions => {
const mostRecentVersionMatch = mostRecentVersionFileName.match(
/v\d+\.\d+\.\d+.*/
);
if (semver.gtr(match[0], mostRecentVersionMatch[0])) return fileName;
return semver.gtr(match[0], mostRecentVersionMatch[0])
? fileName
: mostRecentVersionFileName;
}, "-v0.0.0+commit");
};

Expand Down

0 comments on commit a1f7490

Please sign in to comment.