From 22947db2b6ae17c6069b466d05533a3407e23aec Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 28 Feb 2020 18:41:05 +0100 Subject: [PATCH] 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! --- internal/reqdata/parameter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/reqdata/parameter.go b/internal/reqdata/parameter.go index ba07fb0..2e9aec7 100644 --- a/internal/reqdata/parameter.go +++ b/internal/reqdata/parameter.go @@ -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