]> Sergey Matveev's repositories - btrtrc.git/commitdiff
data/pieceStore/dataBackend: ErrNotFound now aliases os.ErrNotExist
authorMatt Joiner <anacrolix@gmail.com>
Fri, 13 Nov 2015 11:35:18 +0000 (22:35 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 13 Nov 2015 11:35:18 +0000 (22:35 +1100)
data/pieceStore/dataBackend/i.go

index 106bea806fc3bcb68b0ff99ff8bb549e6e96674b..2f837eda7e6eab97db9fd5c5a1e3da366bb38278 100644 (file)
@@ -1,8 +1,8 @@
 package dataBackend
 
 import (
-       "errors"
        "io"
+       "os"
 )
 
 // All functions must return ErrNotFound as required.
@@ -13,7 +13,7 @@ type I interface {
        Delete(path string) error
 }
 
-var ErrNotFound = errors.New("not found")
+var ErrNotFound = os.ErrNotExist
 
 type File interface {
        io.Closer