Skip to content

Commit

Permalink
chore clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MordechaiHadad committed Nov 12, 2023
1 parent 162c89e commit c3da661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github_requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub async fn get_commits_for_nightly(
pub fn deserialize_response<T: DeserializeOwned>(response: String) -> Result<T> {
let value: serde_json::Value = serde_json::from_str(&response)?;

if let Some(_) = value.get("message") {
if value.get("message").is_some() {
let result: ErrorResponse = serde_json::from_value(value)?;

if result.documentation_url.contains("rate-limiting") {
Expand Down

0 comments on commit c3da661

Please sign in to comment.