From 2e95e5e1f6877f9150768dc32eb6a5fabd763b1b Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 29 Oct 2019 08:07:27 -0600 Subject: [PATCH] style(misspell): Collapae case --- dict/misspell/codegen/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dict/misspell/codegen/src/main.rs b/dict/misspell/codegen/src/main.rs index df957f2..e286664 100644 --- a/dict/misspell/codegen/src/main.rs +++ b/dict/misspell/codegen/src/main.rs @@ -21,9 +21,7 @@ fn parse_dict(raw: &str) -> Words { let mut current = &mut bad; for line in raw.lines() { let line = line.splitn(2, "//").next().unwrap().trim(); - if line.is_empty() { - continue; - } else if line.starts_with("package") { + if line.is_empty() || line.starts_with("package") { continue; } else if line.contains("DictMain") { current = &mut main;