Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions cri/v1alpha2/cri_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,7 @@ func (c *CriManager) applySandboxRuntimeHandler(sandboxMeta *metatypes.SandboxMe
runtimehandler = rt
}
sandboxMeta.Runtime = runtimehandler
if err := c.SandboxStore.Put(sandboxMeta); err != nil {
return err
}
return nil
return c.SandboxStore.Put(sandboxMeta)
}

// applySandboxAnnotations applies the annotations extended.
Expand Down
7 changes: 1 addition & 6 deletions daemon/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,7 @@ func (cfg *Config) Validate() error {
cfg.CgroupDriver = DefaultCgroupDriver
}

// validates cgroup driver
if err := validateCgroupDriver(cfg.CgroupDriver); err != nil {
return err
}

return nil
return validateCgroupDriver(cfg.CgroupDriver)
}

//MergeConfigurations merges flagSet flags and config file flags into Config.
Expand Down