Created
October 27, 2016 17:13
-
-
Save mmollaverdi/0101b1836db1e62932e7b90be3575b1c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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