From 6943e7f0a4533eb4e1c0e40854607974f152ec3b Mon Sep 17 00:00:00 2001 From: YongDo-Hyun Date: Sat, 27 Dec 2025 16:41:30 +0300 Subject: fix: simplify exception handling in ozlibstream::close method Signed-off-by: YongDo-Hyun --- src/io/ozlibstream.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/io/ozlibstream.cpp') diff --git a/src/io/ozlibstream.cpp b/src/io/ozlibstream.cpp index c62f58dace..eefe38a91c 100644 --- a/src/io/ozlibstream.cpp +++ b/src/io/ozlibstream.cpp @@ -113,15 +113,7 @@ void ozlibstream::close() // stream, set the `badbit`, then restore the exception mask. exceptions(std::ios_base::goodbit); setstate(std::ios_base::badbit); - try - { - exceptions(old_ex); - } - catch(...) - { - // If anything unexpected happens while restoring the exception mask, - // swallow it — we don't want this to throw here. - } + exceptions(old_ex); } } // namespace zlib -- cgit 0.0.5-2-1-g0f52