Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcmicu committed Jan 14, 2024
1 parent aacdac6 commit f699837
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,7 @@ pub fn read_config_files_old(
"datatype",
"parent",
"condition",
"SQLite type",
"PostgreSQL type",
"SQL type",
] {
if !row.contains_key(column) || row.get(column) == None {
panic!("Missing required column '{}' reading '{}'", column, path);
Expand All @@ -338,7 +337,7 @@ pub fn read_config_files_old(
}
}

for column in vec!["parent", "condition", "SQLite type", "PostgreSQL type"] {
for column in vec!["parent", "condition", "SQL type"] {
if row.get(column).and_then(|c| c.as_str()).unwrap() == "" {
row.remove(&column.to_string());
}
Expand Down

0 comments on commit f699837

Please sign in to comment.