Переглянути джерело

Remove unused error return

Signed-off-by: Antonio Murdaca <me@runcom.ninja>
Antonio Murdaca 10 роки тому
батько
коміт
4aff563282
1 змінених файлів з 2 додано та 6 видалено
  1. 2 6
      daemon/execdriver/native/create.go

+ 2 - 6
daemon/execdriver/native/create.go

@@ -65,9 +65,7 @@ func (d *driver) createContainer(c *execdriver.Command) (*configs.Config, error)
 		return nil, err
 	}
 
-	if err := d.setupLabels(container, c); err != nil {
-		return nil, err
-	}
+	d.setupLabels(container, c)
 	d.setupRlimits(container, c)
 	return container, nil
 }
@@ -254,9 +252,7 @@ func (d *driver) setupMounts(container *configs.Config, c *execdriver.Command) e
 	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.MountLabel = c.MountLabel
-
-	return nil
 }