Skip to content

Commit

Permalink
convert assignment to equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsimha committed Feb 21, 2024
1 parent 1b52245 commit b50817e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ git.gitTagToVersionNumber := { tag: String =>
// Git plugin will automatically add SNAPSHOT for dirty workspaces so remove it to avoid duplication.
val versionStr = if (git.gitUncommittedChanges.value) version.value.replace("-SNAPSHOT", "") else version.value
val branchTag = git.gitCurrentBranch.value.replace("/", "-")
if (branchTag == "main" || branchTag = "master") {
if (branchTag == "main" || branchTag == "master") {
// For main branches, we tag the packages as <package-name>-<build-version>
Some(s"${versionStr}")
} else {
Expand Down

0 comments on commit b50817e

Please sign in to comment.