Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
MOD unnecessary negations
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto-XY committed May 1, 2022
1 parent 53a313d commit 1f0bdab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/ndjson/read/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub fn infer<R: std::io::BufRead>(
reader: &mut R,
number_of_rows: Option<usize>,
) -> Result<DataType> {
if !reader.fill_buf().map(|b| !b.is_empty())? {
if reader.fill_buf().map(|b| b.is_empty())? {
return Err(ArrowError::ExternalFormat(
"Cannot infer NDJSON types on empty reader because empty string is not a valid JSON value".to_string(),
));
Expand Down

0 comments on commit 1f0bdab

Please sign in to comment.