Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
camdencheek committed Jun 10, 2019
1 parent 589d4ef commit bdafda5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/collection/collection.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package collection

import (
"database/sql"
"database/sql"
"encoding/json"
"errors"

Expand Down Expand Up @@ -79,10 +79,10 @@ func buildSchemaListForDatabase(dbname string, con *connection.PGSQLConnection)
}

for index, row := range dataModel {
if !row.SchemaName.Valid || !row.TableName.Valid {
log.Error("Query responded with a null schema name or table name. Skipping row %d", index)
continue
}
if !row.SchemaName.Valid || !row.TableName.Valid {
log.Error("Query responded with a null schema name or table name. Skipping row %d", index)
continue
}

if _, ok := schemaList[row.SchemaName.String]; !ok {
schemaList[row.SchemaName.String] = make(TableList)
Expand Down

0 comments on commit bdafda5

Please sign in to comment.