diff options
author | Michael Muré <batolettre@gmail.com> | 2018-10-01 11:37:17 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-10-01 11:37:17 +0200 |
commit | 3402230a5537d95ce26bf7fa0d33330823a59f08 (patch) | |
tree | abdc5a871e995446da40406754adc11c4e3befe7 /graphql/resolvers/operations.go | |
parent | 7f86898ef9a8f9e866835ece3c9824a8edc58036 (diff) | |
download | git-bug-3402230a5537d95ce26bf7fa0d33330823a59f08.tar.gz |
bug: use a value embedding for OpBase
Diffstat (limited to 'graphql/resolvers/operations.go')
-rw-r--r-- | graphql/resolvers/operations.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/graphql/resolvers/operations.go b/graphql/resolvers/operations.go index 4b78f0fb..88e15d44 100644 --- a/graphql/resolvers/operations.go +++ b/graphql/resolvers/operations.go @@ -11,40 +11,24 @@ import ( type addCommentOperationResolver struct{} -func (addCommentOperationResolver) Author(ctx context.Context, obj *bug.AddCommentOperation) (bug.Person, error) { - return obj.Author, nil -} - func (addCommentOperationResolver) Date(ctx context.Context, obj *bug.AddCommentOperation) (time.Time, error) { return obj.Time(), nil } type createOperationResolver struct{} -func (createOperationResolver) Author(ctx context.Context, obj *bug.CreateOperation) (bug.Person, error) { - return obj.Author, nil -} - func (createOperationResolver) Date(ctx context.Context, obj *bug.CreateOperation) (time.Time, error) { return obj.Time(), nil } type labelChangeOperation struct{} -func (labelChangeOperation) Author(ctx context.Context, obj *bug.LabelChangeOperation) (bug.Person, error) { - return obj.Author, nil -} - func (labelChangeOperation) Date(ctx context.Context, obj *bug.LabelChangeOperation) (time.Time, error) { return obj.Time(), nil } type setStatusOperationResolver struct{} -func (setStatusOperationResolver) Author(ctx context.Context, obj *bug.SetStatusOperation) (bug.Person, error) { - return obj.Author, nil -} - func (setStatusOperationResolver) Date(ctx context.Context, obj *bug.SetStatusOperation) (time.Time, error) { return obj.Time(), nil } @@ -55,10 +39,6 @@ func (setStatusOperationResolver) Status(ctx context.Context, obj *bug.SetStatus type setTitleOperationResolver struct{} -func (setTitleOperationResolver) Author(ctx context.Context, obj *bug.SetTitleOperation) (bug.Person, error) { - return obj.Author, nil -} - func (setTitleOperationResolver) Date(ctx context.Context, obj *bug.SetTitleOperation) (time.Time, error) { return obj.Time(), nil } |