mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-25 17:25:36 +03:00
fixed panic with badly make-d slice in source/metadata.go (#97)
This commit is contained in:
parent
98e91bae51
commit
833fdbf726
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user