Skip to content

Commit

Permalink
Update wpiutil/src/main/native/cpp/FileLogger.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Blue <[email protected]>
  • Loading branch information
Gold856 and rzblue authored Oct 4, 2024
1 parent fc623a1 commit 5c4345d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wpiutil/src/main/native/cpp/FileLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ std::function<void(std::string_view)> FileLogger::LineBuffer(
}
auto combinedData =
fmt::format("{}{}", std::string_view{buf.data(), buf.size()}, data);
std::string_view wholeData;
std::string_view extra;
std::tie(wholeData, extra) = wpi::rsplit(combinedData, "\n");
auto [wholeData, extra] = wpi::rsplit(combinedData, "\n");

callback(wholeData);
buf.clear();
Expand Down

0 comments on commit 5c4345d

Please sign in to comment.