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 e694cf6 commit d751c18Copy full SHA for d751c18
gitlab_client.go
@@ -574,11 +574,11 @@ func (gc *gitlabClient) Valid(ctx context.Context) bool {
574
var _ Client = new(gitlabClient)
575
576
func newGitlabClient(config *EntryConfig, httpClient *http.Client) (gc *g.Client, err error) {
577
- if "" == strings.TrimSpace(config.BaseURL) {
+ if strings.TrimSpace(config.BaseURL) == "" {
578
err = errors.Join(err, fmt.Errorf("gitlab base url: %w", ErrInvalidValue))
579
}
580
581
- if "" == strings.TrimSpace(config.Token) {
+ if strings.TrimSpace(config.Token) == "" {
582
err = errors.Join(err, fmt.Errorf("gitlab token: %w", ErrInvalidValue))
583
584
0 commit comments