We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036be30 commit dadc092Copy full SHA for dadc092
crates/runc-shim/src/service.rs
@@ -69,16 +69,13 @@ impl Shim for Service {
69
async fn start_shim(&mut self, opts: StartOpts) -> containerd_shim::Result<String> {
70
let mut grouping = opts.id.clone();
71
let spec = read_spec("").await?;
72
- match spec.annotations() {
73
- Some(annotations) => {
74
- for &label in GROUP_LABELS.iter() {
75
- if let Some(value) = annotations.get(label) {
76
- grouping = value.to_string();
77
- break;
78
- }
+ if let Some(annotations) = spec.annotations() {
+ for &label in GROUP_LABELS.iter() {
+ if let Some(value) = annotations.get(label) {
+ grouping = value.to_string();
+ break;
79
}
80
81
- None => {}
82
83
#[cfg(not(target_os = "linux"))]
84
let thp_disabled = String::new();
0 commit comments