We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0416af commit eba6877Copy full SHA for eba6877
tapir/src/main/scala/com/softwaremill/session/OneOffTapirSession.scala
@@ -62,13 +62,9 @@ private[session] trait OneOffTapirSession[T] {
62
option: Option[T],
63
existing: Option[String]
64
): Either[ERROR_OUTPUT, Option[String]] =
65
- existing match {
66
- case None =>
67
- option match {
68
- case Some(v) => Right(Some(manager.clientSessionManager.encode(v)))
69
- case _ => Right(None)
70
- }
71
- case some => Right(some)
+ option match {
+ case Some(v) => Right(Some(manager.clientSessionManager.encode(v)))
+ case _ => Right(existing)
72
}
73
74
def setOneOffCookieSession[SECURITY_INPUT, ERROR_OUTPUT, SECURITY_OUTPUT](
0 commit comments