Skip to content

Commit

Permalink
cat: use standard Ok(wtr.flush?) instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Aug 31, 2023
1 parent bfb80be commit 6e0152e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd/cat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl Args {
wtr.write_byte_record(&row)?;
}
}
wtr.flush().map_err(From::from)
Ok(wtr.flush()?)
}

fn cat_rowskey(&self) -> CliResult<()> {
Expand Down Expand Up @@ -215,7 +215,7 @@ impl Args {
wtr.write_byte_record(&csv::ByteRecord::new())?;
}
}
wtr.flush().map_err(From::from)
Ok(wtr.flush()?)
}

fn cat_columns(&self) -> CliResult<()> {
Expand Down Expand Up @@ -264,6 +264,6 @@ impl Args {
}
wtr.write_byte_record(&record)?;
}
wtr.flush().map_err(From::from)
Ok(wtr.flush()?)
}
}

0 comments on commit 6e0152e

Please sign in to comment.