Skip to content

Instantly share code, notes, and snippets.

@mmollaverdi
Created October 27, 2016 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmollaverdi/0101b1836db1e62932e7b90be3575b1c to your computer and use it in GitHub Desktop.
Save mmollaverdi/0101b1836db1e62932e7b90be3575b1c to your computer and use it in GitHub Desktop.
def getSystemStatusInfo(id: String): Option[SystemStatusInfo] = {
val systemOption = systemsMap.get(id)
systemOption.flatMap(system => {
val systemStatusOption = systemStatusMap.get(id)
systemStatusOption.map(systemStatus => SystemStatusInfo(system, systemStatus))
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment