Skip to content

Commit

Permalink
nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed May 5, 2024
1 parent 59289d3 commit c5af930
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@
FROM ubuntu

COPY ["scm-engine", "/usr/local/bin/scm-engine"]

CMD []

ENTRYPOINT ["/usr/local/bin/scm-engine"]
4 changes: 4 additions & 0 deletions pkg/scm/gitlab/client_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ func ParseID(id interface{}) (string, error) { //nolint:varnamelen

// Convert a GitLab native response to a SCM agnostic one
func convertResponse(upstream *go_gitlab.Response) *scm.Response {
if upstream == nil {
return nil
}

return &scm.Response{
Response: upstream.Response,
// Fields used for offset-based pagination.
Expand Down

0 comments on commit c5af930

Please sign in to comment.