Skip to content

Commit

Permalink
Remove accidentally included undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Mar 9, 2017
1 parent 785127c commit e714f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stack/Build/ConstructPlan.hs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ mkUnregisterLocal tasks dirtyReason localDumpPkgs sourceMap =
-- If we're planning on running a task on it, then it must be
-- unregistered
| Just _ <- Map.lookup name tasks
= Just $ fromMaybe undefined $ Map.lookup name dirtyReason
= Just $ fromMaybe "" $ Map.lookup name dirtyReason
-- Check if we're no longer using the local version
| Just (PSUpstream _ Snap _ _ _) <- Map.lookup name sourceMap
= Just "Switching to snapshot installed package"
Expand Down

0 comments on commit e714f1d

Please sign in to comment.