Quellcode durchsuchen

Removed unnecessary exception

yhirose vor 2 Jahren
Ursprung
Commit
1a49076b5b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      httplib.h

+ 1 - 1
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(); }