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

fix

parent 82049ba6
Branches
Tags
No related merge requests found
......@@ -47,7 +47,7 @@ func (s Schema) WithIncludes(includes ...interface{}) *Schema {
func (s *Schema) WithMetadata(kv ...string) *Schema {
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 {
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