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 {
view.AddServiceMessage(fmt.Sprintf("Clipboard unsupported: %v", err))
view.parent.parent.Render()
return
}
} else {
view.AddServiceMessage(fmt.Sprintf("Clipboard register %v unsupported", register))
view.parent.parent.Render()
return
}
}