Skip to content

Commit

Permalink
Make golint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
felixge committed Apr 19, 2021
1 parent c43d1d3 commit a6651bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiler/profiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func newProfiler(opts ...Option) (*profiler, error) {
// WithAgentlessUpload can be used to enable it for testing and debugging.
if cfg.agentless {
if !isAPIKeyValid(cfg.apiKey) {
return nil, errors.New("profiler.WithAgentlessUpload requires a valid API key. Use profiler.WithAPIKey or the DD_API_KEY env variable to set it.")
return nil, errors.New("profiler.WithAgentlessUpload requires a valid API key. Use profiler.WithAPIKey or the DD_API_KEY env variable to set it")
}
// Always warn people against using this mode for now. All customers should
// use agent based uploading at this point.
Expand Down

0 comments on commit a6651bc

Please sign in to comment.