Skip to content

Commit

Permalink
object_store/delimited: Fix TrailingEscape condition (#6265)
Browse files Browse the repository at this point in the history
This seems like a copy-paste mistake since checking `is_quote` twice is probably wrong...
  • Loading branch information
Turbo87 committed Sep 6, 2024
1 parent 2d25d65 commit 6da4793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object_store/src/delimited.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl LineDelimiter {
fn finish(&mut self) -> Result<bool> {
if !self.remainder.is_empty() {
ensure!(!self.is_quote, UnterminatedStringSnafu);
ensure!(!self.is_quote, TrailingEscapeSnafu);
ensure!(!self.is_escape, TrailingEscapeSnafu);

self.complete
.push_back(Bytes::from(std::mem::take(&mut self.remainder)))
Expand Down

0 comments on commit 6da4793

Please sign in to comment.