Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
Clean:
Browse files Browse the repository at this point in the history
  • Loading branch information
shomatan committed May 22, 2018
1 parent 65f4761 commit d8a8399
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ object MappingFiles {
backlogUsers <- AppDSL.streamAsSeq(backlogUserStream).orFail
userHashMap = userNames.map {
case (cybozu, backlog) =>
(cybozu, backlogUsers.find(_.name == backlog).get.userId.getOrElse(throw new RuntimeException("It never happened. Admin user can get userId."))) // TODO:
val backlogUserId = backlogUsers
.find(_.name == backlog)
.getOrElse(throw new RuntimeException("It never happen. It has already validated."))
.userId
.getOrElse(throw new RuntimeException("It never happen. Admin user can get userId."))
(cybozu, backlogUserId)
}
userMappings = indexSeqToHashMap(userHashMap)
priorityMappingStream <- read(Config.PRIORITIES_PATH)
Expand Down

0 comments on commit d8a8399

Please sign in to comment.