We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec4a4e9 commit 5dea2a7Copy full SHA for 5dea2a7
compiler/src/dotty/tools/io/ZipArchive.scala
@@ -32,9 +32,7 @@ object ZipArchive {
32
* @return A ZipArchive if `file` is a readable zip file, otherwise null.
33
*/
34
def fromFile(file: File): FileZipArchive = fromPath(file.jpath)
35
- def fromPath(jpath: JPath): FileZipArchive =
36
- try { new FileZipArchive(jpath) }
37
- catch { case _: IOException => null }
+ def fromPath(jpath: JPath): FileZipArchive = new FileZipArchive(jpath)
38
39
def fromManifestURL(url: URL): AbstractFile = new ManifestResources(url)
40
0 commit comments