From 12fb6c9076d0f70ef38f104e2bcf703084d85373 Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Sun, 26 Apr 2020 22:36:33 +0300 Subject: remove unnecessary returns --- ui/room-view.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'ui') diff --git a/ui/room-view.go b/ui/room-view.go index e9523d9..0cdc7f1 100644 --- a/ui/room-view.go +++ b/ui/room-view.go @@ -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 } } -- cgit v1.2.3