aboutsummaryrefslogtreecommitdiffstats
path: root/query/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'query/parser.go')
-rw-r--r--query/parser.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/query/parser.go b/query/parser.go
index e820c629..6fd5cd74 100644
--- a/query/parser.go
+++ b/query/parser.go
@@ -71,13 +71,7 @@ func Parse(query string) (*Query, error) {
case tokenKindKVV:
switch t.qualifier {
case "metadata":
- if len(t.subQualifier) == 0 {
- return nil, fmt.Errorf("empty value for sub-qualifier \"metadata:%s\"", t.subQualifier)
- }
- var pair StringPair
- pair.Key = t.subQualifier
- pair.Value = t.value
- q.Metadata = append(q.Metadata, pair)
+ q.Metadata = append(q.Metadata, StringPair{Key: t.subQualifier, Value: t.value})
default:
return nil, fmt.Errorf("unknown qualifier \"%s:%s\"", t.qualifier, t.subQualifier)