Skip to content

Commit

Permalink
Merge pull request #1240 from scala-steward/update/scalafmt-core-3.7.13
Browse files Browse the repository at this point in the history
Update scalafmt-core to 3.7.13
  • Loading branch information
alexarchambault authored Sep 5, 2023
2 parents cafc45a + 4fcc494 commit 7599d4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Format code
2870ea92705e98e8f2dc8512100e0d9b48c72605

# Scala Steward: Reformat with scalafmt 3.7.13
6592b546b1d487e7a7584cae1258683c64acac28
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.7.12"
version = "3.7.13"

align.preset = more
maxColumn = 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,11 @@ final class JupyterApiImpl(
}

private val postInterruptHooks0 = new mutable.ListBuffer[(String, Any => Any)]
def addPostInterruptHook(name: String, hook: Any => Any): Boolean = {
!postInterruptHooks0.map(_._1).contains((name)) && {
def addPostInterruptHook(name: String, hook: Any => Any): Boolean =
!postInterruptHooks0.map(_._1).contains(name) && {
postInterruptHooks0.append((name, hook))
true
}
}
def removePostInterruptHook(name: String): Boolean = {
val idx = postInterruptHooks0.map(_._1).indexOf(name)
idx >= 0 && {
Expand Down

0 comments on commit 7599d4c

Please sign in to comment.