Removed unreachable code.

This commit is contained in:
jeefo 2020-12-18 20:14:15 +03:00
commit d23d0475f4

View file

@ -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)) {