fix: mark parameter as parsed after successful parsing
- avoid parsing multiple times in a row ; it has no side-effect but is useless - actually does not cause any issue, but for consistency sake!
This commit is contained in:
parent
3e718c96e8
commit
22947db2b6
|
@ -42,10 +42,11 @@ func (i *Parameter) Parse() error {
|
|||
|
||||
/* (2) Try to parse value */
|
||||
parsed, err := parseParameter(i.Value)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
i.Parsed = true
|
||||
i.Value = parsed
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue