Skip to content

Commit

Permalink
condensed if syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelschiff committed Oct 4, 2023
1 parent be97ef4 commit f089926
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gitops/prer/create_gitops_prs.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ func main() {
body = branch
}

err := gitServer.CreatePR(branch, *prInto, title, body)
if err != nil {
if err := gitServer.CreatePR(branch, *prInto, title, body); err != nil {
log.Fatal("unable to create PR: ", err)
}
}
Expand Down

0 comments on commit f089926

Please sign in to comment.