refactor(3p/nix/libutil): Replace chomp() with absl::strings

This commit is contained in:
Vincent Ambo 2020-05-24 01:36:11 +01:00
parent 10481d2586
commit 06d7b4aebd
15 changed files with 40 additions and 26 deletions

View file

@ -1,5 +1,7 @@
#include "download.hh"
#include <absl/strings/ascii.h>
#include "archive.hh"
#include "compression.hh"
#include "finally.hh"
@ -231,7 +233,9 @@ struct CurlDownloader : public Downloader {
static int debugCallback(CURL* handle, curl_infotype type, char* data,
size_t size, void* userptr) {
if (type == CURLINFO_TEXT) {
DLOG(INFO) << "curl: " << chomp(std::string(data, size));
DLOG(INFO) << "curl: "
<< absl::StripTrailingAsciiWhitespace(
std::string(data, size));
}
return 0;
}