diff options
author | Rob Bast <rob.bast@gmail.com> | 2018-08-21 12:09:13 +0200 |
---|---|---|
committer | Rob Bast <rob.bast@gmail.com> | 2018-08-21 12:09:13 +0200 |
commit | 182e47511626fb01e05b2abcaa589604648959d5 (patch) | |
tree | 195959415bcba1b41aba6dd75af13abc212a0278 /pkg | |
parent | 5f6b61d28c86676fec311ec94edad977343e48bd (diff) |
correct variable assignment
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/branches_panel.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 9d4f467bf..df4dcff78 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -76,10 +76,11 @@ func (gui *Gui) deleteBranch(g *gocui.Gui, v *gocui.View, force bool) error { return gui.createErrorPanel(g, gui.Tr.SLocalize("CantDeleteCheckOutBranch")) } title := gui.Tr.SLocalize("DeleteBranch") + var messageId string if force { - messageId := "ForceDeleteBranchMessage" + messageId = "ForceDeleteBranchMessage" } else { - messageId := "DeleteBranchMessage" + messageId = "DeleteBranchMessage" } message := gui.Tr.TemplateLocalize( messageId, |