cosmetic: use if-then-else instead of otherwise
commitb28cee5fba89bd86949f4f4f9bfd01b382c7a0a7
authorEvan Czaplicki <info@elm-lang.org>
dateFri 21 Aug 2015, 02:45 (11 years ago)
parent2cc0df4
src/Canonicalize/Setup.hs+3−3
@@ -56,11 +56,11 @@ importPatches
5656 -> Result.ResultErr [Env.Patch]
5757importPatches allInterfaces (A.A region (importName, method)) =
5858 case restrictToPublicApi <$> Map.lookup importName allInterfaces of
59− Nothing
60− | Module.nameIsNative importName ->
59+ Nothing ->
60+ if Module.nameIsNative importName then
6161 Result.ok []
6262
63− | otherwise ->
63+ else
6464 allInterfaces
6565 |> Map.keys
6666 |> Error.nearbyNames Module.nameToString importName