diff options
Diffstat (limited to 'entities/bug/op_create.go')
-rw-r--r-- | entities/bug/op_create.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/entities/bug/op_create.go b/entities/bug/op_create.go index 63eb438d0..33504e3d0 100644 --- a/entities/bug/op_create.go +++ b/entities/bug/op_create.go @@ -3,7 +3,6 @@ package bug import ( "fmt" - "github.com/MichaelMure/git-bug/entities/identity" "github.com/MichaelMure/git-bug/entity" "github.com/MichaelMure/git-bug/entity/dag" "github.com/MichaelMure/git-bug/repository" @@ -89,7 +88,7 @@ func (op *CreateOperation) Validate() error { return nil } -func NewCreateOp(author identity.Interface, unixTime int64, title, message string, files []repository.Hash) *CreateOperation { +func NewCreateOp(author entity.Identity, unixTime int64, title, message string, files []repository.Hash) *CreateOperation { return &CreateOperation{ OpBase: dag.NewOpBase(CreateOp, author, unixTime), Title: title, @@ -107,7 +106,7 @@ type CreateTimelineItem struct { func (c *CreateTimelineItem) IsAuthored() {} // Create is a convenience function to create a bug -func Create(author identity.Interface, unixTime int64, title, message string, files []repository.Hash, metadata map[string]string) (*Bug, *CreateOperation, error) { +func Create(author entity.Identity, unixTime int64, title, message string, files []repository.Hash, metadata map[string]string) (*Bug, *CreateOperation, error) { b := NewBug() op := NewCreateOp(author, unixTime, title, message, files) for key, val := range metadata { |