Skip to content

Commit

Permalink
Fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-laterman committed Aug 20, 2021
1 parent 8f61c1c commit 04762fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libbeat/esleg/eslegclient/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func NewConnection(s ConnectionSettings) (*Connection, error) {
} else {
name = strings.Title(name)
}
userAgent = useragent.UserAgent(name)
userAgent := useragent.UserAgent(name)

httpClient, err := s.Transport.Client(
httpcommon.WithLogger(logger),
Expand Down
4 changes: 2 additions & 2 deletions libbeat/kibana/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ func NewClientWithConfigDefault(config *ClientConfig, defaultPort int) (*Client,

name, err := os.Executable()
if err != nil {
logp.Errorf("Unable to get running executable name: %v", err)
log.Errorf("Unable to get running executable name: %v", err)
name = "KibanaClient"
} else {
name = strings.Title(name)
}
userAgent = useragent.UserAgent(name)
userAgent := useragent.UserAgent(name)

rt, err := config.Transport.Client(httpcommon.WithHeaderRoundTripper(map[string]string{"User-Agent": userAgent}))
if err != nil {
Expand Down

0 comments on commit 04762fd

Please sign in to comment.