From e1501a26f35a9688f0717ea18d646233ca14043e Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Fri, 28 Jul 2017 11:38:39 +0000 Subject: [PATCH] Fix code style --- lib/widgets/chat/info.rb | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/lib/widgets/chat/info.rb b/lib/widgets/chat/info.rb index 5509e5b..c9982f2 100644 --- a/lib/widgets/chat/info.rb +++ b/lib/widgets/chat/info.rb @@ -45,21 +45,17 @@ module Widgets def render_public_key Curses::React::Nodes.create( create_element(:line) do - create_element( - :text_line, - x: 0, - y: 1, - width: PUBLIC_KEY_LABEL.length, - text: PUBLIC_KEY_LABEL, - ) + create_element :text_line, + x: 0, + y: 1, + width: PUBLIC_KEY_LABEL.length, + text: PUBLIC_KEY_LABEL - create_element( - :text_line, - x: PUBLIC_KEY_LABEL.length, - y: 1, - width: props[:width] - PUBLIC_KEY_LABEL.length, - text: props[:public_key], - ) + create_element :text_line, + x: PUBLIC_KEY_LABEL.length, + y: 1, + width: props[:width] - PUBLIC_KEY_LABEL.length, + text: props[:public_key] end, window,