Skip to content

Commit 065b73a

Browse files
committed
go lint
1 parent ed8b145 commit 065b73a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

receiver/mongodbatlasreceiver/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ var (
133133
errMaxPageSize = errors.New("the maximum value for 'page_size' is 20000")
134134

135135
// Config Errors
136-
errConfigEmptyEndpoint = errors.New("endpoint must not be empty")
136+
errConfigEmptyEndpoint = errors.New("endpoint must not be empty")
137137
)
138138

139139
func (c *Config) Validate() error {
@@ -268,7 +268,7 @@ func validateEndpoint(endpoint string) error {
268268
return fmt.Errorf(`invalid scheme %q, expected "http" or "https"`, u.Scheme)
269269
}
270270
if u.Host == "" {
271-
return fmt.Errorf("host must not be empty")
271+
return errors.New("host must not be empty")
272272
}
273273
return nil
274274
}

0 commit comments

Comments
 (0)