We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6413312 commit 845d0afCopy full SHA for 845d0af
1 file changed
modules/migrations/gitlab.go
@@ -74,9 +74,7 @@ type GitlabDownloader struct {
74
// Use either a username/password, personal token entered into the username field, or anonymous/public access
75
// Note: Public access only allows very basic access
76
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))
+ gitlabClient, err := gitlab.NewClient(token, gitlab.WithBaseURL(baseURL))
80
// Only use basic auth if token is blank and password is NOT
81
// Basic auth will fail with empty strings, but empty token will allow anonymous public API usage
82
if token == "" && password != "" {
0 commit comments