Skip to content

Commit b1790e4

Browse files
committed
Remove spurious return
1 parent 6abc68f commit b1790e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/util/Try.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ object Try {
217217
val r1 = r
218218
Success(r1)
219219
} catch {
220-
case NonFatal(e) => return Failure(e)
220+
case NonFatal(e) => Failure(e)
221221
}
222222
}
223223

0 commit comments

Comments
 (0)