Skip to content

Commit 37fafc8

Browse files
authored
Format getor function
1 parent ce88fbb commit 37fafc8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/stdlib/std.ncl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,9 +2155,10 @@
21552155
if there is no such field.
21562156
"%%
21572157
= fun field default_value r =>
2158-
if std.record.has_field field r
2159-
then std.record.get field r
2160-
else default_value,
2158+
if std.record.has_field field r then
2159+
std.record.get field r
2160+
else
2161+
default_value,
21612162

21622163
insert
21632164
: forall a. String -> a -> { _ : a } -> { _ : a }

0 commit comments

Comments
 (0)