Skip to content

Commit 9839756

Browse files
authored
Merge pull request #3766 from scala-steward-bot/update/scalafmt-core-3.9.7
Update scalafmt-core to 3.9.7
2 parents f262c0a + b512b08 commit 9839756

14 files changed

+18
-15
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33

44
# Scala Steward: Reformat with scalafmt 3.8.2
55
f1360f44c61f8e12666965c10e79f11cd75d6d30
6+
7+
# Scala Steward: Reformat with scalafmt 3.9.7
8+
a54fb4960ff0762738f4895cdc29bf2715a57f87

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.9.6"
1+
version = "3.9.7"
22
project.git = true
33

44
maxColumn = 120

src/main/scala/gitbucket/core/controller/RepositorySettingsController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ trait RepositorySettingsControllerBase extends ControllerBase {
628628
new Constraint() {
629629
override def validate(name: String, value: String, messages: Messages): Option[String] =
630630
getAccountByUserName(value) match {
631-
case None => Some("User does not exist.")
631+
case None => Some("User does not exist.")
632632
case Some(x) =>
633633
if (x.userName == params("owner")) {
634634
Some("This is current repository owner.")

src/main/scala/gitbucket/core/controller/api/ApiGitReferenceControllerBase.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ trait ApiGitReferenceControllerBase extends ControllerBase {
138138

139139
val name = RepositoryName(repository)
140140
val result = JsonFormat(revstr match {
141-
case "tags" => repository.tags.map(ApiRef.fromTag(name, _))
141+
case "tags" => repository.tags.map(ApiRef.fromTag(name, _))
142142
case x if x.startsWith("tags/") =>
143143
val tagName = x.substring("tags/".length)
144144
repository.tags.find(_.name == tagName) match {

src/main/scala/gitbucket/core/controller/api/ApiIssueMilestoneControllerBase.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ trait ApiIssueMilestoneControllerBase extends ControllerBase {
2929
)
3030
}).reverse
3131
state match {
32-
case "all" => JsonFormat(apiMilestones)
32+
case "all" => JsonFormat(apiMilestones)
3333
case "open" | "closed" =>
3434
JsonFormat(
3535
apiMilestones.filter(p => p.state == state)

src/main/scala/gitbucket/core/service/AccountFederationService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ trait AccountFederationService {
5959
.orElse(extractSafeStringForUserName(mailAddress)) match {
6060
case Some(safeUserName) =>
6161
getAccountByUserName(safeUserName, includeRemoved = true) match {
62-
case None => Some(safeUserName)
62+
case None => Some(safeUserName)
6363
case Some(_) =>
6464
logger.info(
6565
s"User ($safeUserName) already exists. preferredUserName=$preferredUserName, mailAddress=$mailAddress"

src/main/scala/gitbucket/core/service/AccountService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ trait AccountService {
4646
case account if !account.isGroupAccount =>
4747
account.password match {
4848
case pbkdf2re(iter, salt, hash) if (pbkdf2_sha256(iter.toInt, salt, password) == hash) => Some(account)
49-
case p if p == sha1(password) =>
49+
case p if p == sha1(password) =>
5050
updateAccount(account.copy(password = pbkdf2_sha256(password)))
5151
Some(account)
5252
case _ => None

src/main/scala/gitbucket/core/service/HandleCommentService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ trait HandleCommentService {
6262
.getOrElse(None -> None)
6363

6464
val commentId = (content, action) match {
65-
case (None, None) => None
65+
case (None, None) => None
6666
case (None, Some(action)) =>
6767
Some(createComment(owner, name, userName, issue.issueId, action.capitalize, action))
6868
case (Some(content), _) =>

src/main/scala/gitbucket/core/service/PullRequestService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ trait PullRequestService {
427427
case Some(patch) =>
428428
file -> comments.foreach { case (commentId, lineNumber) =>
429429
lineNumber match {
430-
case Left(oldLine) => updateCommitCommentPosition(commentId, newCommitId, Some(oldLine), None)
430+
case Left(oldLine) => updateCommitCommentPosition(commentId, newCommitId, Some(oldLine), None)
431431
case Right(newLine) =>
432432
var counter = newLine
433433
patch.getDeltas.asScala.filter(_.getSource.getPosition < newLine).foreach { delta =>

src/main/scala/gitbucket/core/servlet/ApiAuthenticationFilter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ApiAuthenticationFilter extends Filter with AccessTokenService with Accoun
4242
updateLastLoginDate(account.userName)
4343
}
4444
chain.doFilter(req, res)
45-
case None => chain.doFilter(req, res)
45+
case None => chain.doFilter(req, res)
4646
case Some(Left(_)) => {
4747
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED)
4848
response.setContentType("application/json; charset=utf-8")

0 commit comments

Comments
 (0)