Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
etan-status committed Feb 20, 2024
1 parent a0e8019 commit 3469573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions confutils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,8 @@ template setField[T](loc: var T, val: Option[string], defaultVal: untyped) =
loc = if isSome(val): parseCmdArgAux(FieldType, val.get)
else: FieldType(defaultVal)

template setField[T](loc: var seq[T], val: Option[string],
defaultVal: untyped) =
template setField[T](
loc: var seq[T], val: Option[string], defaultVal: untyped) =
if val.isSome:
loc.add parseCmdArgAux(type(loc[0]), val.get)
else:
Expand Down

0 comments on commit 3469573

Please sign in to comment.