Skip to content

Commit

Permalink
chore: linting improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed May 6, 2024
1 parent bd130b9 commit d6fd0fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/core/src/description_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub fn make_column_vector(
actual_columns
.into_iter()
.map(|column| {
if inferred_columns_map.get(&column).is_some() {
if inferred_columns_map.contains(&column) {
present_row::Row::PresentInSqlAndDefinitions(Row {
title: column.to_string(),
..Default::default()
Expand All @@ -120,7 +120,7 @@ pub fn make_column_vector(
}
})
.chain(inferred_columns.into_iter().filter_map(|column| {
if actual_columns_map.get(&column).is_none() {
if !actual_columns_map.contains(&column) {
Some(present_row::Row::MissingInDefinitions(Row {
title: column.to_string(),
..Default::default()
Expand Down

0 comments on commit d6fd0fd

Please sign in to comment.