From dcc9c2166da58d60c64997b87a3a725e0593480b Mon Sep 17 00:00:00 2001 From: sfali Date: Sat, 24 Aug 2024 17:10:06 -0400 Subject: [PATCH] use option for null String #3253 --- .../main/scala/akka/stream/alpakka/azure/storage/package.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-storage/src/main/scala/akka/stream/alpakka/azure/storage/package.scala b/azure-storage/src/main/scala/akka/stream/alpakka/azure/storage/package.scala index e1d049b843..028b25d079 100644 --- a/azure-storage/src/main/scala/akka/stream/alpakka/azure/storage/package.scala +++ b/azure-storage/src/main/scala/akka/stream/alpakka/azure/storage/package.scala @@ -36,5 +36,5 @@ package object storage { /** This method returns `None` if given an empty `String`. This is typically used when parsing XML since its common to * have XML elements with an empty text value inside. */ - private[storage] def emptyStringToOption(value: String): Option[String] = if (value == "") None else Some(value) + private[storage] def emptyStringToOption(value: String): Option[String] = if (value == "") None else Option(value) }