diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..b941eab --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.8.4 +348bda65bcba11b0c01fbce938b76d00c2e2fb29 diff --git a/.scalafmt.conf b/.scalafmt.conf index 8c7e4cf..2eefda7 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.8.3" +version = "3.8.4" align.preset = more maxColumn = 100 diff --git a/publish/src/coursier/publish/dir/Dir.scala b/publish/src/coursier/publish/dir/Dir.scala index 0817ed7..29ae536 100644 --- a/publish/src/coursier/publish/dir/Dir.scala +++ b/publish/src/coursier/publish/dir/Dir.scala @@ -103,9 +103,8 @@ object Dir { } } - Files.isDirectory(dir) && { - validate(dir).getOrElse(false) - } + Files.isDirectory(dir) && + validate(dir).getOrElse(false) } def read(dir: Path, logger: => DirLogger): FileSet = { diff --git a/publish/src/coursier/publish/sbt/Sbt.scala b/publish/src/coursier/publish/sbt/Sbt.scala index 58308d1..ab7503b 100644 --- a/publish/src/coursier/publish/sbt/Sbt.scala +++ b/publish/src/coursier/publish/sbt/Sbt.scala @@ -114,11 +114,10 @@ object Sbt { def isSbtProject(dir: Path): Boolean = Files.isDirectory(dir) && { val buildProps = dir.resolve("project/build.properties") - Files.isRegularFile(buildProps) && { - Try(new String(Files.readAllBytes(buildProps), StandardCharsets.UTF_8)) - .toOption - .exists(_.linesIterator.exists(_.startsWith("sbt.version="))) - } + Files.isRegularFile(buildProps) && + Try(new String(Files.readAllBytes(buildProps), StandardCharsets.UTF_8)) + .toOption + .exists(_.linesIterator.exists(_.startsWith("sbt.version="))) } }