Commit 57687207 authored by Hector Sanjuan's avatar Hector Sanjuan

unixfs/mod: use errors.New() for all defined errors

License: MIT
Signed-off-by: default avatarHector Sanjuan <hector@protocol.ai>
parent 79baf42e
......@@ -6,7 +6,6 @@ import (
"bytes"
"context"
"errors"
"fmt"
"io"
chunk "github.com/ipfs/go-ipfs/importer/chunk"
......@@ -25,7 +24,7 @@ import (
var (
ErrSeekFail = errors.New("failed to seek properly")
ErrUnrecognizedWhence = errors.New("unrecognized whence")
ErrNotUnixfs = fmt.Errorf("dagmodifier only supports unixfs nodes (proto or raw)")
ErrNotUnixfs = errors.New("dagmodifier only supports unixfs nodes (proto or raw)")
)
// 2MB
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment