Skip to content

Commit

Permalink
fixed panic with badly make-d slice in source/metadata.go (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilotoole authored Sep 19, 2021
1 parent 98e91ba commit 833fdbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsq/source/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 833fdbf

Please sign in to comment.