Skip to content

Commit

Permalink
Fix bug in missing match case
Browse files Browse the repository at this point in the history
  • Loading branch information
rowannekabalan committed Dec 4, 2023
1 parent 6e2f423 commit 562099a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ val snapshotReleaseType = "snapshot"
val snapshotReleaseSuffix = "-SNAPSHOT"

lazy val versionSettingsMaybe = {
// Set by e.g. sbt -DRELEASE_TYPE=candidate|snapshot.
// For production release, don't set a RELEASE_TYPE variable
sys.props.get("RELEASE_TYPE").map {
case v if v == snapshotReleaseType => snapshotReleaseSuffix
case _ => ""
}.map { suffix =>
releaseVersion := {
ver => Version(ver).map(_.withoutQualifier.string).map(_.concat(suffix)).getOrElse(versionFormatError(ver))
Expand Down

0 comments on commit 562099a

Please sign in to comment.