fix use-errors-new from revive

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-05-15 11:56:40 +02:00
parent f0136d1dba
commit 381d9d0723
107 changed files with 267 additions and 235 deletions

View File

@@ -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, "/")