Skip to content

Commit 80c98a3

Browse files
authored
Merge pull request #25 from scala-steward/update/sbt-tpolecat-0.1.17
Update sbt-tpolecat to 0.1.17
2 parents 89dbd8a + 120517e commit 80c98a3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

core/src/main/scala/nz/co/bottech/scala2plantuml/ClassDiagramRenderer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ object ClassDiagramRenderer {
115115
case head +: tail =>
116116
val nextOuter = renderElement(head, previous, outer, writer, elementsWithNames.names)
117117
loop(tail, Some(head), nextOuter)
118-
case Seq() =>
118+
case _ =>
119119
if (outer.nonEmpty) writer.write("\n}")
120120
writer.write('\n')
121121
}

core/src/main/scala/nz/co/bottech/scala2plantuml/DiagramModifications.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private[scala2plantuml] object DiagramModifications {
7979
loop(tail, aggregations + aggregation, acc :+ aggregation)
8080
case head +: tail =>
8181
loop(tail, aggregations, acc :+ head)
82-
case Seq() => acc
82+
case _ => acc
8383
}
8484
val newElements = loop(elements, Set.empty, Vector.empty)
8585
elementsWithNames.copy(elements = newElements)

core/src/main/scala/nz/co/bottech/scala2plantuml/SemanticDbLoader.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private[scala2plantuml] class SemanticDBLoader(prefixes: Seq[String], classLoade
2424
case Left(error) => loop(tail, errors ++ error)
2525
case Right(value) => Right(value)
2626
}
27-
case Seq() => Left(errors)
27+
case _ => Left(errors)
2828
}
2929
semanticdbPath(symbol).flatMap { path =>
3030
val paths =

core/src/main/scala/nz/co/bottech/scala2plantuml/TypeHierarchy.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ final private[scala2plantuml] case class TypeHierarchy(
1111
@tailrec
1212
def loop(remaining: Seq[TypeHierarchy], seen: Set[String]): Boolean =
1313
remaining match {
14-
case Nil => false
1514
case head +: tail if seen.contains(head.symbolInformation.symbol) => loop(tail, seen)
1615
case head +: _ if head.symbolInformation.symbol == parent => true
1716
case head +: tail => loop(head.parents ++ tail, seen + head.symbolInformation.symbol)
17+
case _ => false
1818
}
1919
loop(parents, Set.empty)
2020
}

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.10.1
33
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
44
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.6")
55
addSbtPlugin("com.github.cb372" % "sbt-explicit-dependencies" % "0.2.16")
6-
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.16")
6+
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.17")
77
addSbtPlugin("net.vonbuchholtz" % "sbt-dependency-check" % "3.1.1")
88
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.18")
99
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")

0 commit comments

Comments
 (0)