s3: Simplify IsNotExist()

This commit is contained in:
Alexander Neumann 2017-05-31 21:23:01 +02:00
parent 5c59484d2b
commit aa0f874c8d
1 changed files with 1 additions and 5 deletions

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.