aboutsummaryrefslogtreecommitdiffstats
path: root/bug
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-19 18:34:25 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-19 18:34:25 +0200
commit59e6ae872cad5683a9f1887cbef382d0e76ecc61 (patch)
tree747cad4cd54adb225e927429979252f8b0433a68 /bug
parent0a7814f33a44a57924ac4c6dfeca20cf741dc1f3 (diff)
downloadgit-bug-59e6ae872cad5683a9f1887cbef382d0e76ecc61.tar.gz
NewBug can no longer error
Diffstat (limited to 'bug')
-rw-r--r--bug/bug.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/bug/bug.go b/bug/bug.go
index 3632d6f2..4df6996c 100644
--- a/bug/bug.go
+++ b/bug/bug.go
@@ -34,9 +34,9 @@ type Bug struct {
}
// Create a new Bug
-func NewBug() (*Bug, error) {
+func NewBug() *Bug {
// No id yet
- return &Bug{}, nil
+ return &Bug{}
}
// Find an existing Bug matching a prefix
@@ -216,9 +216,9 @@ func (bug *Bug) Commit(repo repository.Repo) error {
// Write a Git tree referencing this blob
hash, err = repo.StoreTree([]repository.TreeEntry{
// the last pack of ops
- {repository.Blob, hash, OpsEntryName},
+ {ObjectType: repository.Blob, Hash: hash, Name: OpsEntryName},
// always the first pack of ops (might be the same)
- {repository.Blob, bug.rootPack, RootEntryName},
+ {ObjectType: repository.Blob, Hash: bug.rootPack, Name: RootEntryName},
})
if err != nil {