diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-19 13:33:16 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-19 13:49:26 +0200 |
commit | 25fb88d7497b00bbe3dda540efde22ffd3de6e49 (patch) | |
tree | cce413d63228f7869a096a73475c4057879560ac /repository/tree_entry.go | |
parent | 7f5922f905831a85ffee4c9226b65715899ba758 (diff) | |
download | git-bug-25fb88d7497b00bbe3dda540efde22ffd3de6e49.tar.gz |
fix dependencies
Diffstat (limited to 'repository/tree_entry.go')
-rw-r--r-- | repository/tree_entry.go | 5 |
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) } } |