Golint: remove redundant ifs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: b4a63139696aea2c73ec361a9af8b36a118f0423 Component: engine
This commit is contained in:
@@ -27,9 +27,5 @@ func Chtimes(name string, atime time.Time, mtime time.Time) error {
|
||||
}
|
||||
|
||||
// Take platform specific action for setting create time.
|
||||
if err := setCTime(name, mtime); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return setCTime(name, mtime)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user