mirror of
https://github.com/docker/cli.git
synced 2026-09-27 01:40:31 -04:00
Golint: remove redundant ifs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: b4a63139696aea2c73ec361a9af8b36a118f0423 Component: engine
This commit is contained in:
@@ -133,10 +133,7 @@ func (s *fs) Delete(dgst digest.Digest) error {
|
||||
if err := os.RemoveAll(s.metadataDir(dgst)); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := os.Remove(s.contentFile(dgst)); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return os.Remove(s.contentFile(dgst))
|
||||
}
|
||||
|
||||
// SetMetadata sets metadata for a given ID. It fails if there's no base file.
|
||||
|
||||
Reference in New Issue
Block a user