Skip to content

Commit d6fd43d

Browse files
committed
Reformat with scalafmt 3.8.3
Executed command: scalafmt --non-interactive
1 parent 6c90b49 commit d6fd43d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: modules/core/src/main/scala/scalacache/serialization/binary/JavaSerializationAnyRefCodec.scala

+5-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ class JavaSerializationAnyRefCodec[S <: Serializable](classTag: ClassTag[S]) ext
3131

3232
def using[T <: Closeable, R](obj: T)(f: T => R): R =
3333
try f(obj)
34-
finally try obj.close()
35-
catch {
36-
case NonFatal(_) => // does nothing
37-
}
34+
finally
35+
try obj.close()
36+
catch {
37+
case NonFatal(_) => // does nothing
38+
}
3839

3940
def encode(value: S): Array[Byte] =
4041
using(new ByteArrayOutputStream()) { buf =>

0 commit comments

Comments
 (0)