Skip to content

Commit

Permalink
minor enumerate refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Oct 21, 2021
1 parent 0d4218a commit 5984420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/enumerate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
headers.push_field(column_name.as_bytes());
} else if args.flag_uuid {
headers.push_field(b"uuid");
} else if let Some(_) = &args.flag_constant {
} else if args.flag_constant.is_some() {
headers.push_field(b"constant");
} else if copy_operation {
let current_header = String::from_utf8(headers[copy_index].to_vec())
Expand Down

0 comments on commit 5984420

Please sign in to comment.