From 1f0bdab88d91ae1d87dacf9636c8c38e53f830a2 Mon Sep 17 00:00:00 2001 From: roberto Date: Sun, 1 May 2022 05:00:06 +0200 Subject: [PATCH] MOD unnecessary negations --- src/io/ndjson/read/file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/ndjson/read/file.rs b/src/io/ndjson/read/file.rs index cfb49bf6bc8..17595c171a4 100644 --- a/src/io/ndjson/read/file.rs +++ b/src/io/ndjson/read/file.rs @@ -104,7 +104,7 @@ pub fn infer( reader: &mut R, number_of_rows: Option, ) -> Result { - 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(), ));