Skip to content

Commit 25f4109

Browse files
Update scalafmt-core to 2.4.1 (#120)
* Update scalafmt-core to 2.4.1 * scalafmt Co-authored-by: Arnout Engelen <github@bzzt.net>
1 parent 583da5b commit 25f4109

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 2.3.2
1+
version = 2.4.1
22

33
maxColumn = 120
44
docstrings = JavaDoc

src/main/scala/com/lightbend/paradox/apidoc/ApidocDirective.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ class ApidocDirective(allClassesAndObjects: IndexedSeq[String], ctx: Writer.Cont
113113
val classMatches = allClasses.filter(_.endsWith(className))
114114
if (classMatches.size == 1 && classMatches(0).contains(".javadsl.")) {
115115
val objectName = className + '$'
116-
val allMatches = allClassesAndObjects.filter { name =>
117-
name.endsWith(className) || name.endsWith(objectName)
118-
}
116+
val allMatches = allClassesAndObjects.filter(name => name.endsWith(className) || name.endsWith(objectName))
119117
renderMatches(query, allMatches, node, visitor, printer)
120118
} else renderMatches(query, classMatches, node, visitor, printer)
121119
}

src/main/scala/com/lightbend/paradox/apidoc/ApidocPlugin.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ object ApidocPlugin extends AutoPlugin {
5353
.scan()
5454
val allClasses = scanner.getAllClasses.getNames.asScala.toVector
5555
Def.task {
56-
Seq(
57-
{ ctx: Writer.Context =>
58-
new ApidocDirective(allClasses, ctx)
59-
}
60-
)
56+
Seq((ctx: Writer.Context) => new ApidocDirective(allClasses, ctx))
6157
}
6258
}.value
6359
)

0 commit comments

Comments
 (0)