Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSrSouza committed Jun 4, 2024
1 parent c68e78e commit 1a6b6ce
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public fun FadeTransition(
modifier = modifier,
disposeScreenAfterTransitionEnd = false,
animationSpec = animationSpec,
content = content,
content = content
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public fun ScaleTransition(
modifier = modifier,
animationSpec = animationSpec,
disposeScreenAfterTransitionEnd = false,
content = content,
content = content
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public fun ScreenTransition(
enterTransition = enterTransition,
exitTransition = exitTransition,
modifier = modifier,
content = content,
content = content
)
}

Expand All @@ -99,7 +99,7 @@ public fun ScreenTransition(
},
modifier = modifier,
disposeScreenAfterTransitionEnd = disposeScreenAfterTransitionEnd,
content = content,
content = content
)
}

Expand All @@ -115,7 +115,7 @@ public fun ScreenTransition(
transition = transition,
modifier = modifier,
disposeScreenAfterTransitionEnd = false,
content = content,
content = content
)
}

Expand Down Expand Up @@ -154,7 +154,7 @@ public fun ScreenTransition(
) { screen ->
if (this.transition.targetState == this.transition.currentState) {
LaunchedEffect(Unit) {
if(disposeScreenAfterTransitionEnd) {
if (disposeScreenAfterTransitionEnd) {
// if disposeSteps = true, lastEvent will be always idle
// else it will keep the event and we can dispose our self.
if (navigator.lastEvent in disposableEvents) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public fun SlideTransition(
orientation = orientation,
animationSpec = animationSpec,
disposeScreenAfterTransitionEnd = false,
content = content,
content = content
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import androidx.compose.runtime.remember
@Composable
internal fun <T> rememberRef(): MutableState<T?> {
return remember {
object: MutableState<T?> {
object : MutableState<T?> {
override var value: T? = null

override fun component1(): T? = value
Expand All @@ -21,7 +21,7 @@ internal fun <T> rememberRef(): MutableState<T?> {
@Composable
internal fun <T> rememberPrevious(
current: T,
shouldUpdate: (prev: T?, curr: T) -> Boolean = { a: T?, b: T -> a != b },
shouldUpdate: (prev: T?, curr: T) -> Boolean = { a: T?, b: T -> a != b }
): T? {
val ref = rememberRef<T>()

Expand Down

0 comments on commit 1a6b6ce

Please sign in to comment.