Skip to content

Commit 5855291

Browse files
authored
Merge pull request scala/scala#10871 from som-snytt/tweak/try-return
Remove spurious return
2 parents 2513452 + b1790e4 commit 5855291

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)