Skip to content

Commit

Permalink
Fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanratcliffe committed Dec 9, 2024
1 parent e02cc48 commit fed7f63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions adapters/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ func InitializeEngine(ec *discovery.EngineConfig, reverseDNS bool) (*discovery.E
},
}

e.AddAdapters(adapters...)
err = e.AddAdapters(adapters...)

return e, nil
return e, err
}

// newRdapClient Creates a new RDAP client using otelhttp.DefaultClient. rdap is suspected to not be thread safe, so we create a new client for each request
Expand Down
6 changes: 4 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ var rootCmd = &cobra.Command{
return nil
}

e.EngineConfig.HeartbeatOptions.HealthCheck = healthCheck
if e.EngineConfig.HeartbeatOptions != nil {
e.EngineConfig.HeartbeatOptions.HealthCheck = healthCheck
}
http.HandleFunc(healthCheckPath, func(rw http.ResponseWriter, r *http.Request) {
err := healthCheck()
if err == nil {
Expand Down Expand Up @@ -163,7 +165,7 @@ var rootCmd = &cobra.Command{
},
}

// Execute adds all child commands to the root command and sets flags appropriately.
// Execute adds all child commands to the root command and sets flags appropriately.add
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
if err := rootCmd.Execute(); err != nil {
Expand Down

0 comments on commit fed7f63

Please sign in to comment.