Skip to content

Commit 5dea2a7

Browse files
Remove unneeded exception handling
1 parent ec4a4e9 commit 5dea2a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/io/ZipArchive.scala

+1-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ object ZipArchive {
3232
* @return A ZipArchive if `file` is a readable zip file, otherwise null.
3333
*/
3434
def fromFile(file: File): FileZipArchive = fromPath(file.jpath)
35-
def fromPath(jpath: JPath): FileZipArchive =
36-
try { new FileZipArchive(jpath) }
37-
catch { case _: IOException => null }
35+
def fromPath(jpath: JPath): FileZipArchive = new FileZipArchive(jpath)
3836

3937
def fromManifestURL(url: URL): AbstractFile = new ManifestResources(url)
4038

0 commit comments

Comments
 (0)