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 532e9f84c79007c5ed30d73fceb7bcb7266f52b7 Author: PRANSHU RAJ <[email protected]> AuthorDate: Fri Jul 22 16:05:01 2022 +0530 perf: edited err to nil edited the err handling err to nil --- plugins/tapd/api/connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tapd/api/connection.go b/plugins/tapd/api/connection.go index b582bed7..415df7cb 100644 --- a/plugins/tapd/api/connection.go +++ b/plugins/tapd/api/connection.go @@ -165,7 +165,7 @@ func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error connection := &models.TapdConnection{} err := connectionHelper.First(connection, input.Params) if err != nil { - return nil, err + return nil,err } - return &core.ApiResourceOutput{Body: connection}, err + return &core.ApiResourceOutput{Body: connection}, nil }
