Browse code

Remove unused error return

Signed-off-by: Antonio Murdaca <me@runcom.ninja>

Antonio Murdaca authored on 2015/05/02 22:57:57
Showing 1 changed files
... ...
@@ -65,9 +65,7 @@ func (d *driver) createContainer(c *execdriver.Command) (*configs.Config, error)
65 65
 		return nil, err
66 66
 	}
67 67
 
68
-	if err := d.setupLabels(container, c); err != nil {
69
-		return nil, err
70
-	}
68
+	d.setupLabels(container, c)
71 69
 	d.setupRlimits(container, c)
72 70
 	return container, nil
73 71
 }
... ...
@@ -254,9 +252,7 @@ func (d *driver) setupMounts(container *configs.Config, c *execdriver.Command) e
254 254
 	return nil
255 255
 }
256 256
 
257
-func (d *driver) setupLabels(container *configs.Config, c *execdriver.Command) error {
257
+func (d *driver) setupLabels(container *configs.Config, c *execdriver.Command) {
258 258
 	container.ProcessLabel = c.ProcessLabel
259 259
 	container.MountLabel = c.MountLabel
260
-
261
-	return nil
262 260
 }