2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-02 11:46:36 +00:00

s3: Simplify IsNotExist()

This commit is contained in:
Alexander Neumann 2017-05-31 21:23:01 +02:00
parent 5c59484d2b
commit aa0f874c8d

View File

@ -88,11 +88,7 @@ func (be *s3) createConnections() {
// IsNotExist returns true if the error is caused by a not existing file.
func (be *s3) IsNotExist(err error) bool {
debug.Log("IsNotExist(%T, %#v)", err, err)
if os.IsNotExist(err) {
return true
}
return false
return os.IsNotExist(err)
}
// Join combines path components with slashes.