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

commit 8007ff2a67f5773aa09b96cf020131746c137240
Author: PRANSHU RAJ <[email protected]>
AuthorDate: Thu Aug 4 02:04:33 2022 +0530

    added error handling
---
 plugins/github/api/connection.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/github/api/connection.go b/plugins/github/api/connection.go
index e7e4bf6c..3cff808c 100644
--- a/plugins/github/api/connection.go
+++ b/plugins/github/api/connection.go
@@ -173,7 +173,7 @@ func DeleteConnection(input *core.ApiResourceInput) 
(*core.ApiResourceOutput, er
                return nil, err
        }
        err = connectionHelper.Delete(connection)
-       return &core.ApiResourceOutput{Body: connection}, err
+       return &core.ApiResourceOutput{Body: connection}, nil
 }
 
 // @Summary get all github connections
@@ -206,5 +206,5 @@ func GetConnection(input *core.ApiResourceInput) 
(*core.ApiResourceOutput, error
        if err != nil {
                return nil, err
        }
-       return &core.ApiResourceOutput{Body: connection}, err
+       return &core.ApiResourceOutput{Body: connection}, nil
 }

Reply via email to