Skip to content

Commit 1bf8382

Browse files
committed
Simplify the slice declaration
1 parent 45bba1d commit 1bf8382

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/merge-pr.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ func MergePr(pr string, auto bool, admin bool) error {
3535
return errors.New("Cancelled.")
3636
}
3737

38-
var args []string
39-
args = append(args, "pr", "merge", pr, "--subject", subject, "--body", body, "--squash")
38+
args := []string{"pr", "merge", pr, "--subject", subject, "--body", body, "--squash"}
4039

4140
if auto {
4241
args = append(args, "--auto")

0 commit comments

Comments
 (0)