From b3ed8ca09eafc5e569fa5456e7cf065c10237507 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 13 Nov 2015 22:35:18 +1100 Subject: [PATCH] data/pieceStore/dataBackend: ErrNotFound now aliases os.ErrNotExist --- data/pieceStore/dataBackend/i.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/pieceStore/dataBackend/i.go b/data/pieceStore/dataBackend/i.go index 106bea80..2f837eda 100644 --- a/data/pieceStore/dataBackend/i.go +++ b/data/pieceStore/dataBackend/i.go @@ -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