Apply suggestions from code review

This commit is contained in:
Jiahao XU 2024-06-10 00:24:53 +10:00 committed by GitHub
parent a236f53121
commit d118412c2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View file

@ -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();

View file

@ -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,
],
)
}

View file

@ -10,7 +10,7 @@ export PATH="$CARGO_HOME/bin:$PATH"
# Install binaries using `--manifest-path`
# Also test default github template
"./$1" binstall --force --manifest-path "manifests/private-github-repo-test-Cargo.toml" --no-confirm cargo-binstall --strategies crate-meta-data --log-level debug
"./$1" binstall --force --manifest-path "manifests/private-github-repo-test-Cargo.toml" --no-confirm cargo-binstall --strategies crate-meta-data
# Test that the installed binaries can be run
cargo binstall --help >/dev/null