Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Franklin Wang <[email protected]>
  • Loading branch information
sbarker2 and gnawf authored Dec 18, 2023
1 parent d242d24 commit 19328d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,6 @@ private class Factory(
)
}

private fun getHydrationCondition(): NadelHydrationWhenCondition? {
return null
}

private fun getHydrationCondition(hydration: UnderlyingServiceHydration): NadelHydrationWhenCondition? {
if (hydration.conditionalHydration == null) {
return null
Expand All @@ -286,7 +282,7 @@ private class Factory(
if (hydration.conditionalHydration.predicate.startsWith != null) {
return NadelHydrationWhenCondition.StringResultStartsWith(
fieldPath = NadelQueryPath(hydration.conditionalHydration.sourceField),
value = hydration.conditionalHydration.predicate.startsWith
prefix = hydration.conditionalHydration.predicate.startsWith
)
}
if (hydration.conditionalHydration.predicate.matches != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sealed class NadelHydrationWhenCondition {

data class StringResultStartsWith(
val fieldPath: NadelQueryPath,
val value: String,
val prefix: String,
) : NadelHydrationWhenCondition() {
override fun evaluate(resultId: String): Boolean {
TODO("Not yet implemented")
Expand Down

0 comments on commit 19328d1

Please sign in to comment.