Skip to content

Commit

Permalink
fix: replace match with if structure, for single_match
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandocast committed Sep 27, 2023
1 parent 7a4012e commit 2e4e179
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/polars-io/src/json/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 2e4e179

Please sign in to comment.