Skip to content

Commit

Permalink
use option for null String akka#3253
Browse files Browse the repository at this point in the history
  • Loading branch information
sfali committed Aug 24, 2024
1 parent 5d3b55d commit dcc9c21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit dcc9c21

Please sign in to comment.