mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
Merge pull request #2036 from THE-Amrit-mahto-05/fix/process-word-file-safely
fix: process_word_file propagates errors instead of panicking
This commit is contained in:
@@ -114,7 +114,7 @@ fn process_word_file(filename: &str, list: &mut Vec<String>) -> Result<(), std::
|
||||
|
||||
for line in reader.lines() {
|
||||
num += 1;
|
||||
let line = line.unwrap();
|
||||
let line = line?;
|
||||
if line.starts_with('#') {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user