From 2e4e179e4ee51d0f5d8f824d4663c9f6354062bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Casta=C3=B1eda?= <73617305+fernandocast@users.noreply.github.com> Date: Wed, 27 Sep 2023 01:32:22 -0600 Subject: [PATCH] fix: replace match with if structure, for single_match --- crates/polars-io/src/json/mod.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/polars-io/src/json/mod.rs b/crates/polars-io/src/json/mod.rs index d177d3a779a06..7eaea02154498 100644 --- a/crates/polars-io/src/json/mod.rs +++ b/crates/polars-io/src/json/mod.rs @@ -205,11 +205,8 @@ where /// Writes the footer of the Json file. pub fn finish(&mut self) -> PolarsResult<()> { - match self.json_format { - JsonFormat::Json => { - self.write_json_finish()?; - }, - _ => {}, + if JsonFormat::Json == self.json_format { + self.write_json_finish()?; } Ok(()) }