mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-17 08:06:38 +00:00
Apply suggestions from code review
This commit is contained in:
parent
a236f53121
commit
d118412c2b
3 changed files with 3 additions and 4 deletions
|
@ -258,7 +258,6 @@ impl GhApiClient {
|
|||
.await
|
||||
{
|
||||
Ok(artifacts) => {
|
||||
debug!("artifacts = {artifacts:?}");
|
||||
Ok(Some(artifacts))
|
||||
}
|
||||
Err(GhApiError::NotFound) => Ok(None),
|
||||
|
@ -556,7 +555,7 @@ mod test {
|
|||
));
|
||||
}
|
||||
|
||||
if client.get_auth_token().is_some() {
|
||||
if client.has_auth_token() {
|
||||
for repo in PRIVATE_REPOS {
|
||||
let client = client.clone();
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ pub(super) fn fetch_release_artifacts_restful_api(
|
|||
client,
|
||||
&[
|
||||
"repos", owner, repo, "releases", "tags",
|
||||
tag, //&percent_encode_http_url_path(tag).to_compact_string(),
|
||||
tag,
|
||||
],
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue