Skip to content

Instantly share code, notes, and snippets.

@ikovalyov
Created March 29, 2020 14:02
Show Gist options
  • Save ikovalyov/1e13c5e5f61cf094826b4ed8eeef8439 to your computer and use it in GitHub Desktop.
Save ikovalyov/1e13c5e5f61cf094826b4ed8eeef8439 to your computer and use it in GitHub Desktop.
val teaPotTurnedOn = if (turnOnTheTeaPot) {
// region Turning teapot on
teaPotService.turnOn()
true
// endregion
} else {
// region Turning teapot off
teaPotService.turnOff()
false
// endregion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment