mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-17 16:16:37 +00:00
Add GhApiClient::has_gh_token
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
6b0f4602b9
commit
7e283cc407
1 changed files with 4 additions and 0 deletions
|
@ -163,6 +163,10 @@ impl GhApiClient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn has_gh_token(&self) -> bool {
|
||||||
|
self.get_auth_token().is_some()
|
||||||
|
}
|
||||||
|
|
||||||
async fn do_fetch<T, U, GraphQLFn, RestfulFn, GraphQLFut, RestfulFut>(
|
async fn do_fetch<T, U, GraphQLFn, RestfulFn, GraphQLFut, RestfulFut>(
|
||||||
&self,
|
&self,
|
||||||
graphql_func: GraphQLFn,
|
graphql_func: GraphQLFn,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue