s3: Simplify IsNotExist()
This commit is contained in:
parent
5c59484d2b
commit
aa0f874c8d
1 changed files with 1 additions and 5 deletions
|
@ -88,11 +88,7 @@ func (be *s3) createConnections() {
|
||||||
// IsNotExist returns true if the error is caused by a not existing file.
|
// IsNotExist returns true if the error is caused by a not existing file.
|
||||||
func (be *s3) IsNotExist(err error) bool {
|
func (be *s3) IsNotExist(err error) bool {
|
||||||
debug.Log("IsNotExist(%T, %#v)", err, err)
|
debug.Log("IsNotExist(%T, %#v)", err, err)
|
||||||
if os.IsNotExist(err) {
|
return os.IsNotExist(err)
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Join combines path components with slashes.
|
// Join combines path components with slashes.
|
||||||
|
|
Loading…
Reference in a new issue