Skip to content

Commit

Permalink
Compact code
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan770 committed Jul 20, 2020
1 parent fdf50ec commit 5e2a65a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spartan/src/http/middleware/access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ where
.map(|token| self.check_access(token, queue))
.ok_or_else(|| AccessError::IncorrectKeyHeader)?
})
.or_else(|| Some(Ok(())))
.unwrap()?;

Ok(())
.unwrap_or_else(|| Ok(()))
} else {
Ok(())
}
Expand Down

0 comments on commit 5e2a65a

Please sign in to comment.