Skip to content

Commit

Permalink
more idiomatic type casing
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Satabin <2537737+satabin@users.noreply.github.com>
  • Loading branch information
AL333Z and satabin committed May 30, 2024
1 parent ca140d9 commit d8766aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ServiceBusMessageContext[F[_], T](

override def metadata: Map[String, String] =
underlying.getRawAmqpMessage.getApplicationProperties.asScala.view.collect {
case (k, v) if v.isInstanceOf[String] => (k, v.asInstanceOf[String])
case (k, v: String) => (k, v)
}.toMap

override def ack(): F[Unit] =
Expand Down

0 comments on commit d8766aa

Please sign in to comment.