Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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))
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement