fixed panic with badly make-d slice in source/metadata.go (#97)

This commit is contained in:
Neil O'Toole 2021-09-18 21:37:22 -06:00 committed by GitHub
parent 98e91bae51
commit 833fdbf726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ type Metadata struct {
// TableNames is a convenience method that returns md's table names.
func (md *Metadata) TableNames() []string {
names := make([]string, 0, len(md.Tables))
names := make([]string, len(md.Tables))
for i, tblDef := range md.Tables {
names[i] = tblDef.Name
}