Skip to content

Commit

Permalink
Merge pull request #115 from CormickKneey/fork
Browse files Browse the repository at this point in the history
device-injector: remove unreachable code.
  • Loading branch information
samuelkarp authored Oct 23, 2024
2 parents 229236e + 235aa11 commit 44ecabb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions plugins/device-injector/device-injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ func (p *plugin) CreateContainer(_ context.Context, pod *api.PodSandbox, ctr *ap
return nil, nil, err
}

return adjust, nil, nil

if verbose {
dump(containerName(pod, ctr), "ContainerAdjustment", adjust)
}
Expand Down Expand Up @@ -132,10 +130,6 @@ func parseDevices(ctr string, annotations map[string]string) ([]device, error) {
return nil, nil
}

if annotation == nil {
return nil, nil
}

if err := yaml.Unmarshal(annotation, &devices); err != nil {
return nil, fmt.Errorf("invalid device annotation %q: %w", string(annotation), err)
}
Expand Down

0 comments on commit 44ecabb

Please sign in to comment.