diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-02 16:35:13 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-02 16:35:13 +0200 |
commit | ae1ed6c11f3ae5675c80f377dd7f3996b3d621d0 (patch) | |
tree | 85c4b12e0ebdbbbe43938ac1fa6d9f751a782ab3 /graphql/resolvers | |
parent | e6a64b4985f5d342b8e75fecaf4d138f4f50487e (diff) | |
download | git-bug-ae1ed6c11f3ae5675c80f377dd7f3996b3d621d0.tar.gz |
termui: implement addComment and setTitle
Diffstat (limited to 'graphql/resolvers')
-rw-r--r-- | graphql/resolvers/mutation.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/graphql/resolvers/mutation.go b/graphql/resolvers/mutation.go index 2960368a..a85459f2 100644 --- a/graphql/resolvers/mutation.go +++ b/graphql/resolvers/mutation.go @@ -46,7 +46,7 @@ func (r mutationResolver) Commit(ctx context.Context, repoRef *string, prefix st return bug.Snapshot{}, err } - b, err = b.Commit() + err = b.Commit() if err != nil { return bug.Snapshot{}, err } @@ -67,7 +67,7 @@ func (r mutationResolver) AddComment(ctx context.Context, repoRef *string, prefi return bug.Snapshot{}, err } - b, err = b.AddComment(message) + err = b.AddComment(message) if err != nil { return bug.Snapshot{}, err } @@ -88,7 +88,7 @@ func (r mutationResolver) ChangeLabels(ctx context.Context, repoRef *string, pre return bug.Snapshot{}, err } - b, err = b.ChangeLabels(added, removed) + err = b.ChangeLabels(added, removed) if err != nil { return bug.Snapshot{}, err } @@ -109,7 +109,7 @@ func (r mutationResolver) Open(ctx context.Context, repoRef *string, prefix stri return bug.Snapshot{}, err } - b, err = b.Open() + err = b.Open() if err != nil { return bug.Snapshot{}, err } @@ -130,7 +130,7 @@ func (r mutationResolver) Close(ctx context.Context, repoRef *string, prefix str return bug.Snapshot{}, err } - b, err = b.Close() + err = b.Close() if err != nil { return bug.Snapshot{}, err } @@ -151,7 +151,7 @@ func (r mutationResolver) SetTitle(ctx context.Context, repoRef *string, prefix return bug.Snapshot{}, err } - b, err = b.SetTitle(title) + err = b.SetTitle(title) if err != nil { return bug.Snapshot{}, err } |