1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Remove unused error return

Signed-off-by: Antonio Murdaca <me@runcom.ninja>
This commit is contained in:
Antonio Murdaca 2015-05-02 15:57:57 +02:00
parent 3ea59f8991
commit 4aff563282

View file

@ -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
} }