Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyterkat committed Sep 14, 2023
1 parent 1984c9f commit c5e4d34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/diffbot_lib/src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ pub fn verify_signature(
) -> Result<(), actix_web::error::Error> {
if let Some(sekrit) = secret {
let Some(sig) = signature else {
return Err(actix_web::error::ErrorBadRequest("Expected signature in header"))
return Err(actix_web::error::ErrorBadRequest(
"Expected signature in header",
));
};

//have to wrap it to stop timing attacks on comparison
Expand Down

0 comments on commit c5e4d34

Please sign in to comment.