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 9548059c14bda1c18f1ee3298d0d05f82f41660a
Author: PRANSHU RAJ <[email protected]>
AuthorDate: Thu Jul 21 11:09:41 2022 +0530

    perf: added the error handling
    
    added the error handling GetConnection
---
 plugins/jira/api/connection.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/jira/api/connection.go b/plugins/jira/api/connection.go
index 1cc95c80..1c071504 100644
--- a/plugins/jira/api/connection.go
+++ b/plugins/jira/api/connection.go
@@ -210,5 +210,8 @@ func ListConnections(input *core.ApiResourceInput) 
(*core.ApiResourceOutput, err
 func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, 
error) {
        connection := &models.JiraConnection{}
        err := connectionHelper.First(connection, input.Params)
+       if err != nil {
+               return nil, err
+       }
        return &core.ApiResourceOutput{Body: connection}, err
 }

Reply via email to