Skip to content

Commit

Permalink
Suppress an exhaustivity warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Jul 26, 2021
1 parent 2d457e7 commit b2a9ef1
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,11 @@ private final class DelegatingReporter(
}

import xsbti.Severity.{ Info, Warn, Error }
private[this] def convert(sev: Severity): xsbti.Severity = {
sev match {
case INFO => Info
case WARNING => Warn
case ERROR => Error
}
private[this] def convert(sev: Severity): xsbti.Severity = sev match {
case INFO => Info
case WARNING => Warn
case ERROR => Error
case x => throw new MatchError(x)
}

// Define our own problem because the bridge should not depend on sbt util-logging.
Expand Down

0 comments on commit b2a9ef1

Please sign in to comment.