aboutsummaryrefslogtreecommitdiffstats
path: root/termui/termui.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-24 12:58:04 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:48:50 +0100
commite100ee9f10dd7f600b58bf3d24b36f9b286210d6 (patch)
tree0df0fb14642aeda9b21564112b5a876fc64b8990 /termui/termui.go
parentb59623a835f1f922d06ff7212b5bf7825624d134 (diff)
downloadgit-bug-e100ee9f10dd7f600b58bf3d24b36f9b286210d6.tar.gz
github: fix 3 edge-case failures
Diffstat (limited to 'termui/termui.go')
-rw-r--r--termui/termui.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/termui/termui.go b/termui/termui.go
index 78900de8..54d9df69 100644
--- a/termui/termui.go
+++ b/termui/termui.go
@@ -226,7 +226,7 @@ func addCommentWithEditor(bug *cache.BugCache) error {
if err == input.ErrEmptyMessage {
ui.msgPopup.Activate(msgPopupErrorTitle, "Empty message, aborting.")
} else {
- err := bug.AddComment(message)
+ _, err := bug.AddComment(message)
if err != nil {
return err
}
@@ -261,7 +261,7 @@ func editCommentWithEditor(bug *cache.BugCache, target git.Hash, preMessage stri
} else if message == preMessage {
ui.msgPopup.Activate(msgPopupErrorTitle, "No changes found, aborting.")
} else {
- err := bug.EditComment(target, message)
+ _, err := bug.EditComment(target, message)
if err != nil {
return err
}
@@ -298,7 +298,7 @@ func setTitleWithEditor(bug *cache.BugCache) error {
} else if title == snap.Title {
ui.msgPopup.Activate(msgPopupErrorTitle, "No change, aborting.")
} else {
- err := bug.SetTitle(title)
+ _, err := bug.SetTitle(title)
if err != nil {
return err
}