Skip to content

Instantly share code, notes, and snippets.

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/3c0d404e7207e5624e9bf23265dd42fa to your computer and use it in GitHub Desktop.
Save mmollaverdi/3c0d404e7207e5624e9bf23265dd42fa to your computer and use it in GitHub Desktop.
def getSystemStatusInfo(id: String): Option[SystemStatusInfo] = {
for {
systemStatus <- systemStatusMap.get(id)
system <- systemsMap.get(id)
} yield SystemStatusInfo(system, systemStatus)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment