Skip to content

Commit 3b0b34c

Browse files
Catch all exceptions (#64192)
Co-authored-by: Eaton Zveare <[email protected]>
1 parent 2e71ad4 commit 3b0b34c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFileExtensions.ZipArchiveEntry.Extract.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static void ExtractToFile(this ZipArchiveEntry source, string destination
8383
{
8484
File.SetLastWriteTime(destinationFileName, source.LastWriteTime.DateTime);
8585
}
86-
catch (UnauthorizedAccessException)
86+
catch
8787
{
8888
// some OSes like Android (#35374) might not support setting the last write time, the extraction should not fail because of that
8989
}

0 commit comments

Comments
 (0)