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
b890fa0ccc
commit
fab09b2a5b
|
@ -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