code cleanup

This commit is contained in:
Jonathan Lamothe 2020-02-13 20:08:10 -05:00
parent 6bb4601e6b
commit 214710661a
2 changed files with 5 additions and 5 deletions

View File

@ -83,8 +83,8 @@ confirmCreateGoalieC = Controller
then success
else modify $ progMode.editGoalieStateL
%~ (egsSelectedGoalie ?~ gid)
. (egsMode .~ EGLtGames True)
. (egsCallback .~ success)
. (egsMode .~ EGLtGames True)
. (egsCallback .~ success)
Just False -> failure
Nothing -> return ()
return True

View File

@ -86,10 +86,10 @@ confirmCreatePlayerC = Controller
modify addPlayer
if rookie
then success
else modify (progMode.editPlayerStateL
else modify $ progMode.editPlayerStateL
%~ (epsSelectedPlayer ?~ pid)
. (epsMode .~ EPLtGoals True)
. (epsCallback .~ success))
. (epsMode .~ EPLtGoals True)
. (epsCallback .~ success)
Just False -> failure
Nothing -> return ()
return True