Skip to content

Commit ced54aa

Browse files
committed
Fix () insertion in xsbt
1 parent 774c8da commit ced54aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sbt-bridge/src/xsbt/DelegatingReporter.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ final class DelegatingReporter(delegate: xsbti.Reporter) extends Reporter
4646
noPosition
4747

4848
val sb = new StringBuilder()
49-
sb.append(messageAndPos(cont.contained, cont.pos, diagnosticLevel(cont)))
50-
if (ctx.shouldExplain(cont) && cont.contained.explanation.nonEmpty) {
51-
sb.append(explanation(cont.contained))
49+
sb.append(messageAndPos(cont.contained(), cont.pos, diagnosticLevel(cont)))
50+
if (ctx.shouldExplain(cont) && cont.contained().explanation.nonEmpty) {
51+
sb.append(explanation(cont.contained()))
5252
}
5353

5454
delegate.log(position, sb.toString(), severity)
5555
}
5656

57-
private[this] def maybe[T](opt: Option[T]): Maybe[T] = opt match {
57+
private[this] def maybe[T](opt: Option[T]): Maybe[T] = opt match {
5858
case None => Maybe.nothing[T]
5959
case Some(s) => Maybe.just[T](s)
6060
}

0 commit comments

Comments
 (0)