mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
fix use-errors-new from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -66,7 +66,7 @@ func (daemon *Daemon) rmLink(cfg *config.Config, ctr *container.Container, name
|
||||
}
|
||||
parent, n := path.Split(name)
|
||||
if parent == "/" {
|
||||
return fmt.Errorf("Conflict, cannot remove the default link name of the container")
|
||||
return errors.New("Conflict, cannot remove the default link name of the container")
|
||||
}
|
||||
|
||||
parent = strings.TrimSuffix(parent, "/")
|
||||
|
||||
Reference in New Issue
Block a user