diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 6de26c987..6e38cedd9 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # Format code 2870ea92705e98e8f2dc8512100e0d9b48c72605 + +# Scala Steward: Reformat with scalafmt 3.7.13 +6592b546b1d487e7a7584cae1258683c64acac28 diff --git a/.scalafmt.conf b/.scalafmt.conf index b353c7c8a..9386fdac2 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.7.12" +version = "3.7.13" align.preset = more maxColumn = 100 diff --git a/modules/scala/scala-interpreter/src/main/scala/almond/JupyterApiImpl.scala b/modules/scala/scala-interpreter/src/main/scala/almond/JupyterApiImpl.scala index 45b835d40..bc827a3c6 100644 --- a/modules/scala/scala-interpreter/src/main/scala/almond/JupyterApiImpl.scala +++ b/modules/scala/scala-interpreter/src/main/scala/almond/JupyterApiImpl.scala @@ -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 && {