aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Weigt <julian.weigt@gmail.com>2020-04-26 22:36:33 +0300
committerJulian Weigt <julian.weigt@gmail.com>2020-04-26 22:36:33 +0300
commit12fb6c9076d0f70ef38f104e2bcf703084d85373 (patch)
tree92442048e33840d540d110ef9b601df72f0aaf2a
parent2624dde9833769d1f2a19d11c984a6c8ceb4993a (diff)
remove unnecessary returns
-rw-r--r--ui/room-view.go2
1 files changed, 0 insertions, 2 deletions
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
}
}