diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-19 18:34:25 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-19 18:34:25 +0200 |
commit | 59e6ae872cad5683a9f1887cbef382d0e76ecc61 (patch) | |
tree | 747cad4cd54adb225e927429979252f8b0433a68 /bug/bug.go | |
parent | 0a7814f33a44a57924ac4c6dfeca20cf741dc1f3 (diff) | |
download | git-bug-59e6ae872cad5683a9f1887cbef382d0e76ecc61.tar.gz |
NewBug can no longer error
Diffstat (limited to 'bug/bug.go')
-rw-r--r-- | bug/bug.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 { |