Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Nov 1, 2019
1 parent 93b4f3f commit 24be2fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ func UpdateHookTask(t *HookTask) error {
return err
}

// FindUndeliveredHookTasks represents hook tasks
// FindUndeliveredHookTasks represents find the undelivered hook tasks
func FindUndeliveredHookTasks() ([]*HookTask, error) {
tasks := make([]*HookTask, 0, 10)
if err := x.Where("is_delivered=?", false).Find(&tasks); err != nil {
Expand All @@ -643,7 +643,7 @@ func FindUndeliveredHookTasks() ([]*HookTask, error) {
return tasks, nil
}

// FindRepoUndeliveredHookTasks represents hook tasks
// FindRepoUndeliveredHookTasks represents find the undelivered hook tasks of one repository
func FindRepoUndeliveredHookTasks(repoID int64) ([]*HookTask, error) {
tasks := make([]*HookTask, 0, 5)
if err := x.Where("repo_id=? AND is_delivered=?", repoID, false).Find(&tasks); err != nil {
Expand Down

0 comments on commit 24be2fd

Please sign in to comment.