Remove useless move.

This commit is contained in:
tastytea 2019-12-25 19:28:48 +01:00
parent eca12c0831
commit d0ea315e08
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -86,14 +86,14 @@ void Document::download(const string &uri)
case 303: case 303:
case 307: case 307:
{ {
string newuri{extract_location(response.headers)}; const string newuri{extract_location(response.headers)};
if (newuri.empty()) if (newuri.empty())
{ {
throw HTTPException{response.code}; throw HTTPException{response.code};
} }
BOOST_LOG_TRIVIAL(debug) << "Feed redirect: " << _data.feedurl; BOOST_LOG_TRIVIAL(debug) << "Feed redirect: " << _data.feedurl;
download(move(newuri)); download(newuri);
break; break;
} }
case -1: case -1: