Skip to content

Commit

Permalink
Update scalafmt-core to 3.8.1 (#2123)
Browse files Browse the repository at this point in the history
Co-authored-by: scala-steward <scala-steward>
  • Loading branch information
softwaremill-ci committed Apr 3, 2024
1 parent 9c0afc2 commit dc606da
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ b364558c7d44d6c21f1532d618707cc7ca1e4148

# Scala Steward: Reformat with scalafmt 3.7.14
a5e39d1f4d49c7e32a9b834ebbf429f8f5cab5ee

# Scala Steward: Reformat with scalafmt 3.8.1
19891560efe4b9262b4b4079e5ca95dbbea1a906
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.17
version = 3.8.1
maxColumn = 120
rewrite.rules = [RedundantBraces, RedundantParens, SortImports]
runner.dialect = scala3
4 changes: 2 additions & 2 deletions core/src/test/scala/sttp/client4/testing/HttpTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -473,10 +473,10 @@ trait HttpTest[F[_]]
req.send(backend).toFuture().map(resp => resp.body should be("p1=v1 (f1), p2=v2 (f2)"))
}

if(supportsNonAsciiHeaderValues) {
if (supportsNonAsciiHeaderValues) {
"send a multipart message with non-ascii filenames" in {
val req = mp.multipartBody(multipart("p1", "v1").fileName("fó1"), multipart("p2", "v2").fileName("fó2"))
req.send(backend).toFuture().map { resp => resp.body should be("p1=v1 (fó1), p2=v2 (fó2)") }
req.send(backend).toFuture().map(resp => resp.body should be("p1=v1 (fó1), p2=v2 (fó2)"))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ trait HttpTestExtensions[F[_]] extends AsyncFreeSpecLike { self: HttpTest[F] =>
val allBytes = response.body.readAllBytes()
val fc = new String(allBytes, "UTF-8")
fc should be(expectedPostEchoResponse)
} finally {
response.body.close()
}
} finally response.body.close()
}
}
}
Expand Down

0 comments on commit dc606da

Please sign in to comment.