Skip to content

Commit 89c5b39

Browse files
Update source/configy/read.d
Co-authored-by: Mathias LANG <[email protected]>
1 parent 6c6a49d commit 89c5b39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/configy/read.d

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,7 @@ package FR.Type parseField (alias FR)
721721
{
722722
if (node.nodeID == NodeID.mapping)
723723
return node.parseMapping!(FR)(path, defaultValue, ctx, null);
724-
else
725-
if (node.nodeID == NodeID.scalar)
724+
else if (node.nodeID == NodeID.scalar)
726725
return wrapConstruct(FR.Type.fromString(node.as!string), path, Location.get(node));
727726
else
728727
throw new TypeConfigException(node, "a mapping (object) or a scalar", path);

0 commit comments

Comments
 (0)