Skip to content

Commit 99cd383

Browse files
committed
Fix Scala 3
1 parent de713d2 commit 99cd383

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

callback/src/main/scala-3/japgolly/scalajs/react/callback/CallbackOption.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ final class CallbackOption[+A](val underlyingRepr: CallbackOption.UnderlyingRepr
280280
*
281281
* @param cond The condition required to be `true` for this callback to execute.
282282
*/
283-
def when(inline cond: Boolean): CallbackOption[A] =
283+
def when(cond: Boolean): CallbackOption[A] =
284284
new CallbackOption[A](() => if (cond) cbfn() else None)
285285

286286
/**
@@ -298,7 +298,7 @@ final class CallbackOption[+A](val underlyingRepr: CallbackOption.UnderlyingRepr
298298
* @param cond The condition required to be `false` for this callback to execute.
299299
* @return `Some` result of the callback executed, else `None`.
300300
*/
301-
inline def unless(inline cond: Boolean): CallbackOption[A] =
301+
def unless(cond: Boolean): CallbackOption[A] =
302302
when(!cond)
303303

304304
/**

0 commit comments

Comments
 (0)