mirror of
https://github.com/restic/restic.git
synced 2025-08-20 22:47:39 +00:00
s3: Simplify IsNotExist()
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user