From 63a660a250a0903274f69b1c0cef89741ce65537 Mon Sep 17 00:00:00 2001 From: Scala Steward <43047562+scala-steward@users.noreply.github.com> Date: Mon, 20 Jan 2025 08:57:44 +0100 Subject: [PATCH] Update scalafmt-core to 3.8.5 (#368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## About this PR 📦 Updates [org.scalameta:scalafmt-core](https://github.com/scalameta/scalafmt) from `3.8.3` to `3.8.5` 📜 [GitHub Release Notes](https://github.com/scalameta/scalafmt/releases/tag/v3.8.5) - [Version Diff](https://github.com/scalameta/scalafmt/compare/v3.8.3...v3.8.5) ## Usage ✅ **Please merge!** I'll automatically update this PR to resolve conflicts as long as you don't change it yourself. If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below. Configure Scala Steward for your repository with a [`.scala-steward.conf`](https://github.com/scala-steward-org/scala-steward/blob/cef750ca7ef49bfcc10ef9e8db0c6284b3a873c5/docs/repo-specific-configuration.md) file. _Have a fantastic day writing Scala!_
âš™ Adjust future updates Add this to your `.scala-steward.conf` file to ignore future updates of this dependency: ``` updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ] ``` Or, add this to slow down future updates of this dependency: ``` dependencyOverrides = [{ pullRequests = { frequency = "30 days" }, dependency = { groupId = "org.scalameta", artifactId = "scalafmt-core" } }] ```
labels: library-update, early-semver-patch, semver-spec-patch, commit-count:n:3 --- .git-blame-ignore-revs | 2 ++ .scalafmt.conf | 2 +- .../akkaeffect/eventsourcing/Engine.scala | 10 ++++------ 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..4465a1ee --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.8.5 +798c79594210aab1f3275bdb487030cef1cf1b0b diff --git a/.scalafmt.conf b/.scalafmt.conf index 81803b40..02a60a57 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.8.3 +version = 3.8.5 maxColumn = 120 diff --git a/eventsourcing/src/main/scala/com/evolutiongaming/akkaeffect/eventsourcing/Engine.scala b/eventsourcing/src/main/scala/com/evolutiongaming/akkaeffect/eventsourcing/Engine.scala index 539b6a87..858479f0 100644 --- a/eventsourcing/src/main/scala/com/evolutiongaming/akkaeffect/eventsourcing/Engine.scala +++ b/eventsourcing/src/main/scala/com/evolutiongaming/akkaeffect/eventsourcing/Engine.scala @@ -466,12 +466,10 @@ object Engine { Ref[F] .of(initial) .map { seqNrRef => events => - { - val size = events.size - seqNrRef.modify { seqNr => - val seqNr1 = seqNr + size - (seqNr1, seqNr1) - } + val size = events.size + seqNrRef.modify { seqNr => + val seqNr1 = seqNr + size + (seqNr1, seqNr1) } }