mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-16 07:36:38 +00:00
Fix: Ignore empty Github Token
Empty GitHub Token is invalid, it should not be used.
This commit is contained in:
parent
e017be2247
commit
e1d9425cba
1 changed files with 4 additions and 0 deletions
|
@ -609,6 +609,10 @@ You cannot use --{option} and specify multiple packages at the same time. Do one
|
||||||
opts.github_token = Some(GithubToken(Zeroizing::new(github_token.into())));
|
opts.github_token = Some(GithubToken(Zeroizing::new(github_token.into())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
match opts.github_token.as_deref() {
|
||||||
|
Some(token) if token.is_empty() => opts.github_token = None,
|
||||||
|
_ => (),
|
||||||
|
}
|
||||||
|
|
||||||
opts
|
opts
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue