diff options
-rw-r--r-- | models/pull_sign.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/pull_sign.go b/models/pull_sign.go index 91b8defa53..ab61232d65 100644 --- a/models/pull_sign.go +++ b/models/pull_sign.go @@ -27,12 +27,13 @@ func (pr *PullRequest) SignMerge(u *User, tmpBasePath, baseCommit, headCommit st var gitRepo *git.Repository var err error +Loop: for _, rule := range rules { switch rule { case never: return false, "", &ErrWontSign{never} case always: - break + break Loop case pubkey: keys, err := ListGPGKeys(u.ID, ListOptions{}) if err != nil { |