remove unnecessary returns
This commit is contained in:
parent
2624dde983
commit
12fb6c9076
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user