Skip to content

Commit

Permalink
proper check
Browse files Browse the repository at this point in the history
  • Loading branch information
szwarckonrad committed Aug 22, 2023
1 parent ab6b532 commit de77d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/server/services/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ class OutputService {
) {
updateData.compression_level = 4;
}
if (data.compression !== kafkaCompressionType.Gzip) {
if (data.compression && data.compression !== kafkaCompressionType.Gzip) {
// Clear compression level if compression is not gzip
updateData.compression_level = null;
}
Expand Down

0 comments on commit de77d03

Please sign in to comment.