Skip to content

Commit

Permalink
Merge pull request #30 from hseeberger/29-unknown-scalafmt-version
Browse files Browse the repository at this point in the history
Fix support for unknown Scalafmt version (closes #29)
  • Loading branch information
pauldraper authored Jul 10, 2017
2 parents b0052a8 + 7d52c3b commit 7321eed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ object ScalafmtCorePlugin extends AutoPlugin {
case Some("0.7" | "1.0") => ("2.12", "1.0")
case _ =>
println(s"Warning: Unknown Scalafmt version ${scalafmtVersion.value}; using 1.0 interface")
"1.0"
("2.12", "1.0")
}
val version = if (BuildInfo.version.endsWith("-SNAPSHOT")) {
s"${BuildInfo.version.stripSuffix("-SNAPSHOT")}-$fmtVersion-SNAPSHOT"
Expand Down

0 comments on commit 7321eed

Please sign in to comment.