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 da39d51 commit a863625
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 a863625

Please sign in to comment.