Address remaining panic in the generated code
Image download was missed in the previous change of eliminating panics from the generated code. Change-Id: I0f4c3cabe0fb091c5e2c40d55d8ffdfcabb05184 Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
This commit is contained in:
1 changed files with 2 additions and 2 deletions
@@ -6,11 +6,11 @@
let image_id = image_data["id"]
.as_str()
.expect("Image ID is a string")
.ok_or_else(|| eyre::eyre!("image ID must be a string"))?
.to_string();
let image_name = image_data["name"]
.as_str()
.expect("Image name is a string")
.ok_or_else(|| eyre::eyre!("image name must be a string"))?
.to_string();
let ep = download::Request::builder()
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.