Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. def getSystemStatusInfo(id: String): Option[SystemStatusInfo] = {
  2. val systemOption = systemsMap.get(id)
  3. systemOption.flatMap(system => {
  4. val systemStatusOption = systemStatusMap.get(id)
  5. systemStatusOption.map(systemStatus => SystemStatusInfo(system, systemStatus))
  6. })
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement