From d2ff1fa978aab5eef50ae3d9a69300f01642ea46 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 24 Jan 2026 15:48:04 +0000 Subject: [PATCH] style: format code with Go fmt and Gofumpt This commit fixes the style issues introduced in 748ecbf according to the output from Go fmt and Gofumpt. Details: https://github.com/gogs/gogs/pull/8105 --- internal/database/pull.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/database/pull.go b/internal/database/pull.go index 2d845ccdf..aab41a1c7 100644 --- a/internal/database/pull.go +++ b/internal/database/pull.go @@ -200,7 +200,7 @@ func (pr *PullRequest) Merge(doer *User, baseGitRepo *git.Repository, mergeStyle return errors.Newf("Issue.changeStatus: %v", err) } - headRepoPath := RepoPath(pr.HeadUserName, pr.HeadRepo.Name) + headRepoPath := RepoPath(pr.HeadUserName, pr.HeadRepo.Name) headGitRepo, err := git.Open(headRepoPath) if err != nil { return errors.Newf("open repository: %v", err) @@ -450,13 +450,13 @@ func NewPullRequest(repo *Repository, pull *Issue, labelIDs []int64, uuids []str pr.BaseRepo = repo if err := pr.testPatch(); err != nil { return errors.Newf("testPatch: %v", err) - } - // No conflict appears after test means mergeable. - if pr.Status == PullRequestStatusChecking { - pr.Status = PullRequestStatusMergeable - } + } + // No conflict appears after test means mergeable. + if pr.Status == PullRequestStatusChecking { + pr.Status = PullRequestStatusMergeable + } - pr.IssueID = pull.ID + pr.IssueID = pull.ID if err := tx.Create(pr).Error; err != nil { return errors.Newf("insert pull repo: %v", err) }