Skip to content

Commit 2a2bd23

Browse files
committed
fixup! Backport scala.util.Using
improve formatting a little I guess
1 parent 5d4a2e3 commit 2a2bd23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compat/src/main/scala-2.11_2.12/scala/util/Using.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ object Using {
275275
if (toThrow eq null) releasable.release(resource)
276276
else {
277277
try releasable.release(resource)
278-
catch { case other: Throwable => toThrow = preferentiallySuppress(toThrow, other) } finally throw toThrow
278+
catch {
279+
case other: Throwable => toThrow = preferentiallySuppress(toThrow, other)
280+
} finally throw toThrow
279281
}
280282
}
281283
}

0 commit comments

Comments
 (0)