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:
Adrien Marquès 2020-02-28 18:41:05 +01:00
parent b890fa0ccc
commit fab09b2a5b
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 2 additions and 1 deletions

View File

@ -42,10 +42,11 @@ func (i *Parameter) Parse() error {
/* (2) Try to parse value */ /* (2) Try to parse value */
parsed, err := parseParameter(i.Value) parsed, err := parseParameter(i.Value)
if err != nil { if err != nil {
return err return err
} }
i.Parsed = true
i.Value = parsed i.Value = parsed
return nil return nil