From b26e6a40ec3f6f780f76bbb6b3c039cb9e8a6eed Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Thu, 30 Dec 2021 09:37:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/repo_watch.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/repo_watch.go b/models/repo_watch.go index 1d6b7a31c..4a8f1af8a 100644 --- a/models/repo_watch.go +++ b/models/repo_watch.go @@ -280,8 +280,9 @@ func notifyWatchers(e Engine, actions ...*Action) error { // NotifyWatchers creates batch of actions for every watcher. func NotifyWatchers(actions ...*Action) error { + error := notifyWatchers(x, actions...) producer(actions...) - return notifyWatchers(x, actions...) + return error } func producer(actions ...*Action) {