aboutsummaryrefslogtreecommitdiffstats
path: root/repository/tree_entry.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-19 13:33:16 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-19 13:49:26 +0200
commit25fb88d7497b00bbe3dda540efde22ffd3de6e49 (patch)
treecce413d63228f7869a096a73475c4057879560ac /repository/tree_entry.go
parent7f5922f905831a85ffee4c9226b65715899ba758 (diff)
downloadgit-bug-25fb88d7497b00bbe3dda540efde22ffd3de6e49.tar.gz
fix dependencies
Diffstat (limited to 'repository/tree_entry.go')
-rw-r--r--repository/tree_entry.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/repository/tree_entry.go b/repository/tree_entry.go
index 486c4a74..6716522c 100644
--- a/repository/tree_entry.go
+++ b/repository/tree_entry.go
@@ -3,7 +3,6 @@ package repository
import (
"fmt"
"github.com/MichaelMure/git-bug/util"
- "github.com/pkg/errors"
"strings"
)
@@ -25,7 +24,7 @@ func ParseTreeEntry(line string) (TreeEntry, error) {
fields := strings.Fields(line)
if len(fields) < 4 {
- return TreeEntry{}, errors.New("Invalid input to parse as a TreeEntry")
+ return TreeEntry{}, fmt.Errorf("Invalid input to parse as a TreeEntry")
}
objType, err := ParseObjectType(fields[0], fields[1])
@@ -67,6 +66,6 @@ func ParseObjectType(mode, objType string) (ObjectType, error) {
case mode == "040000" && objType == "tree":
return Tree, nil
default:
- return Unknown, errors.Errorf("Unknown git object type %s %s", mode, objType)
+ return Unknown, fmt.Errorf("Unknown git object type %s %s", mode, objType)
}
}