Skip to content

Commit

Permalink
PR: Seems like dead code in addSchema func
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzadlone committed Jan 23, 2024
1 parent ed2285c commit a65b12c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions db/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ func (db *db) addSchema(
txn datastore.Txn,
schemaString string,
) ([]client.CollectionDescription, error) {
existingCollections, err := db.getAllCollections(ctx, txn)
if err != nil {
return nil, err
}

existingDefinitions := make([]client.CollectionDefinition, len(existingCollections))
for i := range existingCollections {
existingDefinitions[i] = existingCollections[i].Definition()
}

newDefinitions, err := db.parser.ParseSDL(ctx, schemaString)
if err != nil {
return nil, err
Expand Down

0 comments on commit a65b12c

Please sign in to comment.