This is an automated email from the ASF dual-hosted git repository.
abeizn 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 848a78aa7 fix(webhook): avoid to return null when there is no webhook
connections (#6296)
848a78aa7 is described below
commit 848a78aa7139a636b9717a779e6b137f1c9cf7d0
Author: Lynwee <[email protected]>
AuthorDate: Fri Oct 20 11:16:46 2023 +0800
fix(webhook): avoid to return null when there is no webhook connections
(#6296)
---
backend/plugins/webhook/api/connection.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/plugins/webhook/api/connection.go
b/backend/plugins/webhook/api/connection.go
index d86854856..937a3fa6a 100644
--- a/backend/plugins/webhook/api/connection.go
+++ b/backend/plugins/webhook/api/connection.go
@@ -153,7 +153,7 @@ func ListConnections(input *plugin.ApiResourceInput)
(*plugin.ApiResourceOutput,
if err != nil {
return nil, err
}
- var responseList []*WebhookConnectionResponse
+ responseList := []*WebhookConnectionResponse{}
for _, connection := range connections {
webhookConnectionResponse, err := formatConnection(&connection,
true)
if err != nil {