Skip to content

Commit

Permalink
partition: remove unnecessary negation
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed May 21, 2022
1 parent 04ed5ab commit 1b6a66c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd/partition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ impl Args {
};
if self.flag_drop {
wtr.write_record(row.iter().enumerate().filter_map(|(i, e)| {
if i != key_col {
Some(e)
} else {
if i == key_col {
None
} else {
Some(e)
}
}))?;
} else {
Expand Down

0 comments on commit 1b6a66c

Please sign in to comment.