From d23d0475f44910e129f50ac4cec88688dcc194d3 Mon Sep 17 00:00:00 2001 From: jeefo Date: Fri, 18 Dec 2020 20:14:15 +0300 Subject: [PATCH] Removed unreachable code. --- ext/crlib/cr-http.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext/crlib/cr-http.h b/ext/crlib/cr-http.h index ceb3c33..7687b4c 100644 --- a/ext/crlib/cr-http.h +++ b/ext/crlib/cr-http.h @@ -339,7 +339,6 @@ public: bool downloadFile (StringRef url, StringRef localPath, int32 timeout = DefaultSocketTimeout) { if (plat.win && !initialized_) { plat.abort ("Sockets not initialized."); - return false; } if (File::exists (localPath)) { @@ -410,7 +409,6 @@ public: bool uploadFile (StringRef url, StringRef localPath, const int32 timeout = DefaultSocketTimeout) { if (plat.win && !initialized_) { plat.abort ("Sockets not initialized."); - return false; } if (!File::exists (localPath)) {