Skip to content

Commit

Permalink
fix: fix golint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
葉秋 committed Apr 30, 2019
1 parent 33a9d82 commit 323c4b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
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

0 comments on commit 323c4b2

Please sign in to comment.