Skip to content

Commit

Permalink
Merge pull request #290 from scala-steward/update/scalafmt-core-3.3.3
Browse files Browse the repository at this point in the history
Update scalafmt-core to 3.3.3
  • Loading branch information
mergify[bot] authored Feb 6, 2022
2 parents ea357f7 + 630a38f commit ef8e16c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.3.0"
version = "3.3.3"

runner.dialect = scala212

Expand Down
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 ef8e16c

Please sign in to comment.