aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operations/create.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-13 16:13:40 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-13 16:13:40 +0200
commitbc12fee58e8bd86672793ae37d9f924158afb482 (patch)
treeb6506af647a5e6d3d8c053f2b284a3adc335d35b /bug/operations/create.go
parente02294c8f372156945bbc43d70d4d36a07a3fbcf (diff)
downloadgit-bug-bc12fee58e8bd86672793ae37d9f924158afb482.tar.gz
create the Bug structure
Diffstat (limited to 'bug/operations/create.go')
-rw-r--r--bug/operations/create.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bug/operations/create.go b/bug/operations/create.go
index f004a12b..57cca907 100644
--- a/bug/operations/create.go
+++ b/bug/operations/create.go
@@ -7,7 +7,7 @@ import (
// CreateOperation define the initial creation of a bug
-var _ Operation = CreateOperation{}
+var _ bug.Operation = CreateOperation{}
type CreateOperation struct {
Title string
@@ -23,8 +23,8 @@ func NewCreateOp(author bug.Person, title, message string) CreateOperation {
}
}
-func (op CreateOperation) OpType() OperationType {
- return CREATE
+func (op CreateOperation) OpType() bug.OperationType {
+ return bug.CREATE
}
func (op CreateOperation) Apply(snapshot bug.Snapshot) bug.Snapshot {