From 20b59ec1ec1d08705cecc05c49f74e4ce03f9177 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Magiera?= <magik6k@gmail.com>
Date: Sat, 10 Mar 2018 17:59:43 +0100
Subject: [PATCH] coreapi: move unixfs errors to the top
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

License: MIT
Signed-off-by: Ɓukasz Magiera <magik6k@gmail.com>
---
 core/coreapi/interface/interface.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/coreapi/interface/interface.go b/core/coreapi/interface/interface.go
index 75a168bf3..4d68b5f4b 100644
--- a/core/coreapi/interface/interface.go
+++ b/core/coreapi/interface/interface.go
@@ -14,6 +14,9 @@ import (
 	ipld "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format"
 )
 
+var ErrIsDir = errors.New("object is a directory")
+var ErrOffline = errors.New("can't resolve, ipfs node is offline")
+
 // Path is a generic wrapper for paths used in the API. A path can be resolved
 // to a CID using one of Resolve functions in the API.
 type Path interface {
@@ -384,6 +387,3 @@ type PinAPI interface {
 	// Verify verifies the integrity of pinned objects
 	Verify(context.Context) (<-chan PinStatus, error)
 }
-
-var ErrIsDir = errors.New("object is a directory")
-var ErrOffline = errors.New("can't resolve, ipfs node is offline")