From 1a49076b5b26e6a5341e59e199cb2d33efd0ceda Mon Sep 17 00:00:00 2001 From: yhirose Date: Sun, 29 Oct 2023 19:36:40 -0400 Subject: [PATCH] Removed unnecessary exception --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index e400a2b602..a4d44123dc 100644 --- a/httplib.h +++ b/httplib.h @@ -2563,7 +2563,7 @@ inline mmap::mmap(const char *path) #endif , size_(0), addr_(nullptr) { - if (!open(path)) { std::runtime_error(""); } + open(path); } inline mmap::~mmap() { close(); }