Skip to content

Commit

Permalink
Apply feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Apr 11, 2024
1 parent 8b80e56 commit 2ef33c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exporters/otlp/otlplog/otlploghttp/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ func (e *Exporter) Export(ctx context.Context, records []log.Record) error {
return nil
}
otlp := transformResourceLogs(records)
if otlp != nil {
return e.client.Load().UploadLogs(ctx, otlp)
if otlp == nil {
return nil

Check warning on line 51 in exporters/otlp/otlplog/otlploghttp/exporter.go

View check run for this annotation

Codecov / codecov/patch

exporters/otlp/otlplog/otlploghttp/exporter.go#L51

Added line #L51 was not covered by tests
}
return nil
return e.client.Load().UploadLogs(ctx, otlp)
}

// Shutdown shuts down the Exporter. Calls to Export or ForceFlush will perform
Expand Down

0 comments on commit 2ef33c8

Please sign in to comment.