From 13dbfa44c2c712cd4c9a2342b4ec02315c458021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 20 Feb 2020 13:55:55 +0100 Subject: [PATCH] go fmt --- command/issue.go | 14 +++++++------- command/pr.go | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/command/issue.go b/command/issue.go index 1c66bee99..d25912176 100644 --- a/command/issue.go +++ b/command/issue.go @@ -256,13 +256,13 @@ func printIssuePreview(out io.Writer, issue *api.Issue) error { ))) if issue.Body != "" { - fmt.Fprintln(out) - md, err := utils.RenderMarkdown(issue.Body) - if err != nil { - return err - } - fmt.Fprintln(out, md) - fmt.Fprintln(out) + fmt.Fprintln(out) + md, err := utils.RenderMarkdown(issue.Body) + if err != nil { + return err + } + fmt.Fprintln(out, md) + fmt.Fprintln(out) } fmt.Fprintf(out, utils.Gray("View this issue on GitHub: %s\n"), issue.URL) diff --git a/command/pr.go b/command/pr.go index 642067598..25e27a0ad 100644 --- a/command/pr.go +++ b/command/pr.go @@ -309,12 +309,12 @@ func printPrPreview(out io.Writer, pr *api.PullRequest) error { ))) if pr.Body != "" { fmt.Fprintln(out) - md, err := utils.RenderMarkdown(pr.Body) - if err != nil { - return err - } - fmt.Fprintln(out, md) - fmt.Fprintln(out) + md, err := utils.RenderMarkdown(pr.Body) + if err != nil { + return err + } + fmt.Fprintln(out, md) + fmt.Fprintln(out) } fmt.Fprintf(out, utils.Gray("View this pull request on GitHub: %s\n"), pr.URL)