Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: nieznanysprawiciel <[email protected]>
  • Loading branch information
pwalski and nieznanysprawiciel authored Jul 20, 2023
1 parent bc55e7d commit bcb4771
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,7 @@ fn offer(self_test_result: serde_json::Value) -> anyhow::Result<serde_json::Valu
}

fn is_gpu_supported(self_test_result: &serde_json::Value) -> bool {
let Some(root) = self_test_result.as_object() else {
return false;
};

root.get("gpu").is_some()
self_test_result.as_object().and_then(|root| root.get("gpu")).is_some()|
}

Check failure on line 413 in runtime/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

expected expression, found `}`

async fn join_network(
Expand Down

0 comments on commit bcb4771

Please sign in to comment.