Skip to content

Commit

Permalink
fix formatting for getPropositionsForSurfaces kotlin example
Browse files Browse the repository at this point in the history
  • Loading branch information
rymorale committed Jun 26, 2024
1 parent 4edf799 commit 6429364
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ val surfaces = listOf(surface1, surface2)

Messaging.getPropositionsForSurfaces(surfaces) {
it?.let { propositionsMap ->
if (propositionsMap.isNotEmpty()) {
// get the propositions for the given surfaces
propositionsMap[surface1]?.let {
// read surface1 propositions
}
propositionsMap[surface2]?.let {
// read surface2 propositions
}
}
}
if (propositionsMap.isNotEmpty()) {
// get the propositions for the given surfaces
propositionsMap[surface1]?.let {
// read surface1 propositions
}
propositionsMap[surface2]?.let {
// read surface2 propositions
}
}
}
}
```

Expand Down

0 comments on commit 6429364

Please sign in to comment.