Skip to content

Commit

Permalink
Reformat with scalafmt 3.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
scala-steward committed Jan 23, 2022
1 parent d12f8dd commit 630a38f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/scala/com/timushev/sbt/updates/Base64.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ object Base64 {
java.util.Base64.getEncoder.encodeToString(bytes)
}

private lazy val encoder: Array[Byte] => String = {
private lazy val encoder: Array[Byte] => String =
try {
new Java678Encoder().apply(Array.emptyByteArray)
new Java678Encoder
} catch {
case _: LinkageError => new Java9Encoder
}
}

def encodeToString(bytes: Array[Byte]): String = encoder(bytes)
}

0 comments on commit 630a38f

Please sign in to comment.