X Tutup
Skip to content

Commit f2489ed

Browse files
committed
reduce arg length to fprintf
1 parent bdd663e commit f2489ed

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pkg/cmd/pr/view/view.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,16 +154,14 @@ func printHumanPrPreview(opts *ViewOptions, pr *api.PullRequest) error {
154154
// Header (Title and State)
155155
fmt.Fprintln(out, cs.Bold(pr.Title))
156156
fmt.Fprintf(out,
157-
"%s • %s wants to merge %s into %s from %s • %s%s %s%s \n",
157+
"%s • %s wants to merge %s into %s from %s • %s %s \n",
158158
shared.StateTitleWithColor(cs, *pr),
159159
pr.Author.Login,
160160
utils.Pluralize(pr.Commits.TotalCount, "commit"),
161161
pr.BaseRefName,
162162
pr.HeadRefName,
163-
cs.Green("+"),
164-
cs.Green(strconv.Itoa(pr.Additions)),
165-
cs.Red("-"),
166-
cs.Red(strconv.Itoa(pr.Deletions)),
163+
cs.Green("+"+strconv.Itoa(pr.Additions)),
164+
cs.Red("-"+strconv.Itoa(pr.Deletions)),
167165
)
168166

169167
// Reactions

0 commit comments

Comments
 (0)
X Tutup