diff --git a/clients/gitlabrepo/client.go b/clients/gitlabrepo/client.go index 9f556faa2aa8..54b225290833 100644 --- a/clients/gitlabrepo/client.go +++ b/clients/gitlabrepo/client.go @@ -52,6 +52,7 @@ type Client struct { languages *languagesHandler ctx context.Context tarball tarballHandler +} // InitRepo sets up the GitLab project in local storage for improving performance and GitLab token usage efficiency. func (client *Client) InitRepo(inputRepo clients.Repo, commitSHA string) error { @@ -121,6 +122,9 @@ func (client *Client) InitRepo(inputRepo clients.Repo, commitSHA string) error { // Init tarballHandler client.tarball.init(client.ctx, client.repourl, client.repo, commitSHA) + return nil +} + func (client *Client) URI() string { return fmt.Sprintf("%s/%s/%s", client.repourl.hostname, client.repourl.owner, client.repourl.projectID) }