mirror of https://github.com/docker/docs.git
Merge pull request #12941 from runcom/unused-return-error
Remove unused error return
This commit is contained in:
commit
ec534042aa
|
@ -65,9 +65,7 @@ func (d *driver) createContainer(c *execdriver.Command) (*configs.Config, error)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := d.setupLabels(container, c); err != nil {
|
d.setupLabels(container, c)
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
d.setupRlimits(container, c)
|
d.setupRlimits(container, c)
|
||||||
return container, nil
|
return container, nil
|
||||||
}
|
}
|
||||||
|
@ -254,9 +252,7 @@ func (d *driver) setupMounts(container *configs.Config, c *execdriver.Command) e
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *driver) setupLabels(container *configs.Config, c *execdriver.Command) error {
|
func (d *driver) setupLabels(container *configs.Config, c *execdriver.Command) {
|
||||||
container.ProcessLabel = c.ProcessLabel
|
container.ProcessLabel = c.ProcessLabel
|
||||||
container.MountLabel = c.MountLabel
|
container.MountLabel = c.MountLabel
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue