lib/fetcher-curl: Drop unnecessary check

`_ostree_fetcher_journal_failure()` already checks that we only log
messages which have remotes.

Closes: #1732
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon authored and Atomic Bot committed 2018-09-21 18:43:09 +00:00
1 parent 8b2940aa13
commit a88032a09e
1 file changed
-1
-1
View File
@@ -330,7 +330,6 @@ check_multi_info (OstreeFetcher *fetcher)
g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "[%u] %s", g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "[%u] %s",
curlres, curlres,
curl_easy_strerror (curlres)); curl_easy_strerror (curlres));
if (req->fetcher->remote_name)
_ostree_fetcher_journal_failure (req->fetcher->remote_name, _ostree_fetcher_journal_failure (req->fetcher->remote_name,
eff_url, curl_easy_strerror (curlres)); eff_url, curl_easy_strerror (curlres));
} }