Skip to content

Commit 3e3e94f

Browse files
committed
Format force-sensitive map update branches
1 parent 6988fba commit 3e3e94f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/elixir/lib/module/types/descr.ex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4005,7 +4005,9 @@ defmodule Module.Types.Descr do
40054005
# Non-forced updates must not invoke the callback on absent branches:
40064006
# the callback may itself typecheck a function application, and
40074007
# applying it to `none()` will raise undue warnings.
4008-
if force?, do: fields_from_keys(domain_keys, if_set(type_fun.(true, none()))), else: :closed
4008+
if force?,
4009+
do: fields_from_keys(domain_keys, if_set(type_fun.(true, none()))),
4010+
else: :closed
40094011

40104012
# Note: domain_keys may contain duplicates, so we cannot
40114013
# do a side-by-side traversal here.
@@ -4017,7 +4019,9 @@ defmodule Module.Types.Descr do
40174019

40184020
:error ->
40194021
# Likewise, only forced updates may synthesize missing domain keys.
4020-
if force?, do: fields_store(domain_key, if_set(type_fun.(true, none())), acc), else: acc
4022+
if force?,
4023+
do: fields_store(domain_key, if_set(type_fun.(true, none())), acc),
4024+
else: acc
40214025
end
40224026
end)
40234027
end

0 commit comments

Comments
 (0)