We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c189a1 commit ae95408Copy full SHA for ae95408
gitlab_client.go
@@ -567,11 +567,11 @@ func (gc *gitlabClient) Valid(ctx context.Context) bool {
567
var _ Client = new(gitlabClient)
568
569
func newGitlabClient(config *EntryConfig, httpClient *http.Client) (gc *g.Client, err error) {
570
- if "" == strings.TrimSpace(config.BaseURL) {
+ if strings.TrimSpace(config.BaseURL) == "" {
571
err = errors.Join(err, fmt.Errorf("gitlab base url: %w", ErrInvalidValue))
572
}
573
574
- if "" == strings.TrimSpace(config.Token) {
+ if strings.TrimSpace(config.Token) == "" {
575
err = errors.Join(err, fmt.Errorf("gitlab token: %w", ErrInvalidValue))
576
577
0 commit comments