Skip to content

Commit 098fb4e

Browse files
committed
to fix bad formated code
1 parent 1e2fdb7 commit 098fb4e

File tree

3 files changed

+47
-49
lines changed

3 files changed

+47
-49
lines changed

session/core/src/main/scala/com/softwaremill/session/OneOffTapirSession.scala

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ private[session] trait OneOffTapirSession[T] {
5252
}
5353

5454
private[this] def setOneOffSessionLogic(
55-
option: Option[T],
56-
existing: Option[String]
55+
option: Option[T],
56+
existing: Option[String]
5757
): Either[Unit, Option[String]] =
5858
existing match {
5959
case Some(value) =>
@@ -68,21 +68,20 @@ private[session] trait OneOffTapirSession[T] {
6868
}
6969

7070
def setOneOffCookieSession[SECURITY_INPUT, SECURITY_OUTPUT](
71-
body: => PartialServerEndpointWithSecurityOutput[
72-
SECURITY_INPUT,
73-
Option[T],
74-
Unit,
75-
Unit,
76-
SECURITY_OUTPUT,
77-
Unit,
78-
Any,
79-
Future
80-
]
71+
body: => PartialServerEndpointWithSecurityOutput[
72+
SECURITY_INPUT,
73+
Option[T],
74+
Unit,
75+
Unit,
76+
SECURITY_OUTPUT,
77+
Unit,
78+
Any,
79+
Future
80+
]
8181
): PartialServerEndpointWithSecurityOutput[(SECURITY_INPUT, Seq[Option[String]]), Option[
8282
T
8383
], Unit, Unit, (SECURITY_OUTPUT, Seq[Option[String]]), Unit, Any, Future] =
84-
body
85-
.endpoint
84+
body.endpoint
8685
.securityIn(getSessionFromClientAsCookie.map(Seq(_))(_.head))
8786
.out(body.securityOutput)
8887
.out(
@@ -104,21 +103,20 @@ private[session] trait OneOffTapirSession[T] {
104103
}
105104

106105
def setOneOffHeaderSession[SECURITY_INPUT, SECURITY_OUTPUT](
107-
body: => PartialServerEndpointWithSecurityOutput[
108-
SECURITY_INPUT,
109-
Option[T],
110-
Unit,
111-
Unit,
112-
SECURITY_OUTPUT,
113-
Unit,
114-
Any,
115-
Future
116-
]
106+
body: => PartialServerEndpointWithSecurityOutput[
107+
SECURITY_INPUT,
108+
Option[T],
109+
Unit,
110+
Unit,
111+
SECURITY_OUTPUT,
112+
Unit,
113+
Any,
114+
Future
115+
]
117116
): PartialServerEndpointWithSecurityOutput[(SECURITY_INPUT, Seq[Option[String]]), Option[
118117
T
119118
], Unit, Unit, (SECURITY_OUTPUT, Seq[Option[String]]), Unit, Any, Future] =
120-
body
121-
.endpoint
119+
body.endpoint
122120
.securityIn(getSessionFromClientAsHeader.map(Seq(_))(_.head))
123121
.out(body.securityOutput)
124122
.out(sendSessionToClientAsHeader.map(Seq(_))(_.head))

session/core/src/main/scala/com/softwaremill/session/RefreshableTapirSession.scala

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,25 @@ private[session] trait RefreshableTapirSession[T] extends Completion {
6868
}
6969

7070
def setRefreshableSessionLogic(
71-
option: Option[T],
72-
existing: Option[String]
71+
option: Option[T],
72+
existing: Option[String]
7373
): Either[Unit, Option[String]] =
7474
option match {
7575
case Some(v) => Right(rotateToken(v, existing))
7676
case _ => Left(())
7777
}
7878

7979
def setRefreshableCookieSession[SECURITY_INPUT, SECURITY_OUTPUT](
80-
body: => PartialServerEndpointWithSecurityOutput[
81-
SECURITY_INPUT,
82-
Option[T],
83-
Unit,
84-
Unit,
85-
SECURITY_OUTPUT,
86-
Unit,
87-
Any,
88-
Future
89-
]
80+
body: => PartialServerEndpointWithSecurityOutput[
81+
SECURITY_INPUT,
82+
Option[T],
83+
Unit,
84+
Unit,
85+
SECURITY_OUTPUT,
86+
Unit,
87+
Any,
88+
Future
89+
]
9090
): PartialServerEndpointWithSecurityOutput[(SECURITY_INPUT, Seq[Option[String]]), Option[
9191
T
9292
], Unit, Unit, (SECURITY_OUTPUT, Seq[Option[String]]), Unit, Any, Future] = {
@@ -126,16 +126,16 @@ private[session] trait RefreshableTapirSession[T] extends Completion {
126126
}
127127

128128
def setRefreshableHeaderSession[SECURITY_INPUT, SECURITY_OUTPUT](
129-
body: => PartialServerEndpointWithSecurityOutput[
130-
SECURITY_INPUT,
131-
Option[T],
132-
Unit,
133-
Unit,
134-
SECURITY_OUTPUT,
135-
Unit,
136-
Any,
137-
Future
138-
]
129+
body: => PartialServerEndpointWithSecurityOutput[
130+
SECURITY_INPUT,
131+
Option[T],
132+
Unit,
133+
Unit,
134+
SECURITY_OUTPUT,
135+
Unit,
136+
Any,
137+
Future
138+
]
139139
): PartialServerEndpointWithSecurityOutput[(SECURITY_INPUT, Seq[Option[String]]), Option[
140140
T
141141
], Unit, Unit, (SECURITY_OUTPUT, Seq[Option[String]]), Unit, Any, Future] = {

session/core/src/main/scala/com/softwaremill/session/SessionEndpoints.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ trait SessionEndpoints {
5454
Future
5555
] =
5656
setSession[T, A, Unit](sc, st) {
57-
setSessionEndpoint{
57+
setSessionEndpoint {
5858
endpoint.securityIn(auth)
5959
}
6060
}

0 commit comments

Comments
 (0)