1
0
Fork 0
forked from forgejo/forgejo

Fix typos in models/ and modules/ (#1248)

This commit is contained in:
Ethan Koenig 2017-03-14 20:52:01 -04:00 committed by Lunny Xiao
parent ec0ae5d50c
commit 021904e4e6
26 changed files with 63 additions and 63 deletions

View file

@ -475,11 +475,11 @@ func PrepareWebhooks(repo *Repository, event HookEventType, p api.Payloader) err
// check if repo belongs to org and append additional webhooks
if repo.MustOwner().IsOrganization() {
// get hooks for org
orgws, err := GetActiveWebhooksByOrgID(repo.OwnerID)
orgHooks, err := GetActiveWebhooksByOrgID(repo.OwnerID)
if err != nil {
return fmt.Errorf("GetActiveWebhooksByOrgID: %v", err)
}
ws = append(ws, orgws...)
ws = append(ws, orgHooks...)
}
if len(ws) == 0 {