From c97272b3e098a4686f89fbd79b0dcfdd8605327a Mon Sep 17 00:00:00 2001 From: Steve Phelps Date: Sun, 3 Mar 2024 09:47:41 +0000 Subject: [PATCH] formatting --- .../SlackSignatureVerifyAction.scala | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/scala/com/mesonomics/playhmacsignatures/SlackSignatureVerifyAction.scala b/src/main/scala/com/mesonomics/playhmacsignatures/SlackSignatureVerifyAction.scala index 42723a5..28a09f0 100644 --- a/src/main/scala/com/mesonomics/playhmacsignatures/SlackSignatureVerifyAction.scala +++ b/src/main/scala/com/mesonomics/playhmacsignatures/SlackSignatureVerifyAction.scala @@ -13,14 +13,15 @@ import play.api.mvc.BodyParsers import scala.concurrent.ExecutionContext object SlackSignatureVerifyAction { - def convertBytesToHex(bytes: Seq[Byte]): String = { - val sb = new StringBuilder - for (b <- bytes) { - sb.append(String.format("%02x", Byte.box(b))) - } - sb.toString + def convertBytesToHex(bytes: Seq[Byte]): String = { + val sb = new StringBuilder + for (b <- bytes) { + sb.append(String.format("%02x", Byte.box(b))) } + sb.toString + } } + /** This class can be used to validate signatures in * [[https://api.slack.com/authentication/verifying-requests-from-slack#verifying-requests-from-slack-using-signing-secrets__a-recipe-for-security__step-by-step-walk-through-for-validating-a-request Slack requests]]. *