You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by zh...@apache.org on 2022/09/26 12:35:06 UTC
[incubator-devlake] branch main updated: fix: fix response when no webhook connection (#3171)
This is an automated email from the ASF dual-hosted git repository.
zhangliang2022 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 86cf5914 fix: fix response when no webhook connection (#3171)
86cf5914 is described below
commit 86cf591448a9b8bbcd4e9c98b1d59214a21b73fe
Author: likyh <l...@likyh.com>
AuthorDate: Mon Sep 26 20:34:59 2022 +0800
fix: fix response when no webhook connection (#3171)
Co-authored-by: linyh <ya...@meri.co>
---
plugins/webhook/api/connection.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/webhook/api/connection.go b/plugins/webhook/api/connection.go
index b08cd316..a7bdd7a0 100644
--- a/plugins/webhook/api/connection.go
+++ b/plugins/webhook/api/connection.go
@@ -102,7 +102,7 @@ func ListConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, err
if err != nil {
return nil, err
}
- var responseList []WebhookConnectionResponse
+ responseList := []WebhookConnectionResponse{}
for _, connection := range connections {
responseList = append(responseList, *formatConnection(&connection))
}