From 43bb85438f0cbb2b3b2b562b6bfa93b778acffb9 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Fri, 4 Oct 2019 12:41:43 -0400 Subject: [PATCH] Formatting --- cmdEdit.go | 6 ++---- main.go | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/cmdEdit.go b/cmdEdit.go index 1cde233..7c231dc 100644 --- a/cmdEdit.go +++ b/cmdEdit.go @@ -23,7 +23,7 @@ func cmdEdit(cmd []string) { var messageId int if len(cmd) == 2 { messageId, _ = strconv.Atoi(cmd[1]) - printToView("Input", fmt.Sprintf("/edit %d Type edit here",messageId)) + printToView("Input", fmt.Sprintf("/edit %d Type edit here", messageId)) return } if len(cmd) < 3 { @@ -33,11 +33,9 @@ func cmdEdit(cmd []string) { messageId, _ = strconv.Atoi(cmd[1]) chat := k.NewChat(channel) newMessage := strings.Join(cmd[2:], " ") - _, err := chat.Edit(messageId,newMessage) + _, err := chat.Edit(messageId, newMessage) if err != nil { printToView("Feed", fmt.Sprintf("Error editing message %d, %+v", messageId, err)) } - } - diff --git a/main.go b/main.go index 3aa563b..7cc89a2 100644 --- a/main.go +++ b/main.go @@ -256,14 +256,14 @@ func initKeybindings() error { } func updateChatWindow() { - - runOpts := keybase.RunOptions { + + runOpts := keybase.RunOptions{ Dev: dev, } k.Run(func(api keybase.ChatAPI) { handleMessage(api) }, - runOpts) + runOpts) }