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 3e718c96e8
commit 22947db2b6
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 */
parsed, err := parseParameter(i.Value)
if err != nil {
return err
}
i.Parsed = true
i.Value = parsed
return nil