Skip to content
Snippets Groups Projects
Commit e4de3d81 authored by ko_oler's avatar ko_oler
Browse files

fix

parent 82049ba6
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ func (s Schema) WithIncludes(includes ...interface{}) *Schema { ...@@ -47,7 +47,7 @@ func (s Schema) WithIncludes(includes ...interface{}) *Schema {
func (s *Schema) WithMetadata(kv ...string) *Schema { func (s *Schema) WithMetadata(kv ...string) *Schema {
if s.Metadata == nil { if s.Metadata == nil {
s.Metadata = make(map[string]string, len(s.Metadata)) s.Metadata = make(map[string]string)
} }
for i := 0; i < len(kv); i += 2 { for i := 0; i < len(kv); i += 2 {
s.Metadata[kv[i]] = kv[i+1] s.Metadata[kv[i]] = kv[i+1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment