Skip to content

Commit 845d0af

Browse files
authored
4 line diff (#13103)
1 parent 6413312 commit 845d0af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/migrations/gitlab.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ type GitlabDownloader struct {
7474
// Use either a username/password, personal token entered into the username field, or anonymous/public access
7575
// Note: Public access only allows very basic access
7676
func NewGitlabDownloader(ctx context.Context, baseURL, repoPath, username, password, token string) (*GitlabDownloader, error) {
77-
var gitlabClient *gitlab.Client
78-
var err error
79-
gitlabClient, err = gitlab.NewClient(token, gitlab.WithBaseURL(baseURL))
77+
gitlabClient, err := gitlab.NewClient(token, gitlab.WithBaseURL(baseURL))
8078
// Only use basic auth if token is blank and password is NOT
8179
// Basic auth will fail with empty strings, but empty token will allow anonymous public API usage
8280
if token == "" && password != "" {

0 commit comments

Comments
 (0)