Skip to content

Commit

Permalink
Remove useless nullability check
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-udy committed Apr 29, 2024
1 parent 12e7e2c commit 073afe3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private class NavigationContextViewModelFactory(
}

private fun viewModelNotFoundError(context: NavigationContext<*>, modelClass: Class<*>): Nothing {
val key = context.instruction?.navigationKey
val key = context.instruction.navigationKey
error("ViewModel ${modelClass.simpleName} was not found in NavigationContext with navigation key $key")
}

Expand Down

0 comments on commit 073afe3

Please sign in to comment.