aboutsummaryrefslogtreecommitdiffstats
path: root/termui/show_bug.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-03-01 23:17:57 +0100
committerGitHub <noreply@github.com>2019-03-01 23:17:57 +0100
commit7260ca05bc3588c0572887a7d8f1b897c7fc13da (patch)
tree66854358df3cb9de651f7688556ec5a4b8ab1868 /termui/show_bug.go
parent0aefae6fcca5786f2c898029c3d6282f760f2c63 (diff)
parentb6bed784e5664819250aac20b2b9690879ee6ab1 (diff)
downloadgit-bug-7260ca05bc3588c0572887a7d8f1b897c7fc13da.tar.gz
Merge pull request #89 from MichaelMure/identity
WIP identity in git
Diffstat (limited to 'termui/show_bug.go')
-rw-r--r--termui/show_bug.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/termui/show_bug.go b/termui/show_bug.go
index 55d86018..733c801e 100644
--- a/termui/show_bug.go
+++ b/termui/show_bug.go
@@ -622,9 +622,11 @@ func (sb *showBug) setTitle(g *gocui.Gui, v *gocui.View) error {
func (sb *showBug) toggleOpenClose(g *gocui.Gui, v *gocui.View) error {
switch sb.bug.Snapshot().Status {
case bug.OpenStatus:
- return sb.bug.Close()
+ _, err := sb.bug.Close()
+ return err
case bug.ClosedStatus:
- return sb.bug.Open()
+ _, err := sb.bug.Open()
+ return err
default:
return nil
}