Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
No9 committed Jan 23, 2022
1 parent 4991693 commit f27156d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core-dump-composer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ fn main() -> Result<(), anyhow::Error> {
}
};

let namespace = match pod_object["metadata"]["namespace"].as_str() {
Some(s) => s,
None => "unknown",
};
let namespace = pod_object["metadata"]["namespace"]
.as_str()
.unwrap_or("unknown");

cc.set_namespace(namespace.to_string());
// Create the base zip file that we are going to put everything into
Expand Down

0 comments on commit f27156d

Please sign in to comment.