aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-09-30 12:09:18 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-09-30 12:09:18 +0200
commit274357eb6acd9a0812872f32dd487354d51f0f13 (patch)
tree410b2efe513d16ed8273f30e87121d9baab75a0e /src/libfetchers
parent002ce8449d9f3d48930ca98f81262651cf535820 (diff)
Simplify
Diffstat (limited to 'src/libfetchers')
-rw-r--r--src/libfetchers/github.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libfetchers/github.cc b/src/libfetchers/github.cc
index 8286edf75..42eb346a5 100644
--- a/src/libfetchers/github.cc
+++ b/src/libfetchers/github.cc
@@ -15,9 +15,6 @@ struct DownloadUrl
{
std::string url;
Headers headers;
-
- DownloadUrl(const std::string & url, const Headers & headers)
- : url(url), headers(headers) { }
};
// A github or gitlab host
@@ -254,7 +251,7 @@ struct GitHubInputScheme : GitArchiveInputScheme
input.getRev()->to_string(Base16, false));
Headers headers = makeHeadersWithAuthTokens(host);
- return DownloadUrl(url, headers);
+ return DownloadUrl { url, headers };
}
void clone(const Input & input, const Path & destDir) override
@@ -320,7 +317,7 @@ struct GitLabInputScheme : GitArchiveInputScheme
input.getRev()->to_string(Base16, false));
Headers headers = makeHeadersWithAuthTokens(host);
- return DownloadUrl(url, headers);
+ return DownloadUrl { url, headers };
}
void clone(const Input & input, const Path & destDir) override