Skip to content

Commit

Permalink
Fix clang tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
lordgamez committed Feb 18, 2025
1 parent bf3e783 commit 0d16584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/standard-processors/processors/DefragmentText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ bool DefragmentText::splitFlowFileAtLastPattern(core::ProcessSession& session,
}
auto split_position = getSplitPosition(last_regex_match, pattern_location_);
if (split_position != 0) {
split_before_last_pattern = session.clone(*original_flow_file, 0, split_position);
split_before_last_pattern = session.clone(*original_flow_file, 0, gsl::narrow<int64_t>(split_position));
}
if (split_position != original_flow_file->getSize()) {
split_after_last_pattern = session.clone(*original_flow_file, split_position, original_flow_file->getSize() - split_position);
split_after_last_pattern = session.clone(*original_flow_file, gsl::narrow<int64_t>(split_position), gsl::narrow<int64_t>(original_flow_file->getSize() - split_position));
}
updateAttributesForSplitFiles(*original_flow_file, split_before_last_pattern, split_after_last_pattern, split_position);
return true;
Expand Down

0 comments on commit 0d16584

Please sign in to comment.