Skip to content

Commit 83b5445

Browse files
committed
fix: fix 2 linter warnings that were not caught on the last commit
1 parent b7ed9e9 commit 83b5445

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ fn crawl_name_format(crawl: &str) -> Result<String, String> {
9898
let crawl_ref = crawl.to_uppercase();
9999

100100
if !(main_re.is_match(&crawl_ref) || news_re.is_match(&crawl_ref)) {
101-
return Err("Please use the CC-MAIN-YYYY-WW or the CC-NEWS-YYYY-MM format.".to_string());
101+
Err("Please use the CC-MAIN-YYYY-WW or the CC-NEWS-YYYY-MM format.".to_string())
102102
} else {
103-
return Ok(crawl_ref);
103+
Ok(crawl_ref)
104104
}
105105
}

0 commit comments

Comments
 (0)