aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers/mutation.go
diff options
context:
space:
mode:
Diffstat (limited to 'graphql/resolvers/mutation.go')
-rw-r--r--graphql/resolvers/mutation.go12
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
}