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 {
|
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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user