Skip to content

Commit 24be2fd

Browse files
committed
fix comments
1 parent 93b4f3f commit 24be2fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/webhook.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ func UpdateHookTask(t *HookTask) error {
634634
return err
635635
}
636636

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

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

0 commit comments

Comments
 (0)