This commit is contained in:
Lucien Greathouse 2019-04-01 17:49:11 -07:00
parent 77f79fa913
commit 147545e2f8

View file

@ -483,6 +483,7 @@ fn snapshot_csv_file<'source>(
.deserialize()
// TODO: Propagate error upward instead of panicking
.map(|result| result.expect("Malformed localization table found!"))
.filter(|entry: &LocalizationEntryCsv| !(entry.key.is_empty() && entry.source.is_empty()))
.map(LocalizationEntryCsv::to_json)
.collect();