Skip to content

Commit dbd7f45

Browse files
committed
sjs version only if non-empty
1 parent 3b7c84d commit dbd7f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/ScalaModulePlugin.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ object ScalaModulePlugin extends AutoPlugin {
4343
// The staging repository name. The default is `[sbt-sonatype] name version`. We cross-build
4444
// using parallel travis jobs, so we include the Scala/Scala.js versions to make them unique.
4545
sonatypeSessionName := {
46-
val sjs = Option(System.getenv("SCALAJS_VERSION")).map(v => s" Scala.js $v").getOrElse("")
46+
val sjs = Option(System.getenv("SCALAJS_VERSION")).filter(_.nonEmpty).map(v => s" Scala.js $v").getOrElse("")
4747
s"${sonatypeSessionName.value} Scala ${scalaVersion.value}$sjs"
4848
},
4949
)

0 commit comments

Comments
 (0)