You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2022/08/18 08:18:46 UTC

[incubator-devlake] 07/07: added error handling

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 <50...@users.noreply.github.com>
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
 }