Skip to content

Commit

Permalink
refact(test): use is_none instead of if let None`
Browse files Browse the repository at this point in the history
  • Loading branch information
n-dusan committed Jan 26, 2024
1 parent 1086f98 commit 801ec43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/archive_testtools/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ impl TestDataRepositoryContext {
route_glob_patterns: Option<Vec<String>>,
is_fallback: bool,
) -> Result<Self> {
if let None = serve_prefix {
if let None = route_glob_patterns {
if serve_prefix.is_none() {
if route_glob_patterns.is_none() {
return Err(anyhow::anyhow!(
"A test data repository must have either a serve prefix or route glob patterns."
));
Expand Down

0 comments on commit 801ec43

Please sign in to comment.