remove unnecessary returns

This commit is contained in:
Julian Weigt 2020-04-26 22:36:33 +03:00
parent 2624dde983
commit 12fb6c9076

View File

@ -636,12 +636,10 @@ func (view *RoomView) CopyToClipboard(text string, register string) {
if err != nil { if err != nil {
view.AddServiceMessage(fmt.Sprintf("Clipboard unsupported: %v", err)) view.AddServiceMessage(fmt.Sprintf("Clipboard unsupported: %v", err))
view.parent.parent.Render() view.parent.parent.Render()
return
} }
} else { } else {
view.AddServiceMessage(fmt.Sprintf("Clipboard register %v unsupported", register)) view.AddServiceMessage(fmt.Sprintf("Clipboard register %v unsupported", register))
view.parent.parent.Render() view.parent.parent.Render()
return
} }
} }