Skip to content

Commit

Permalink
changes after PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
syordanov94 committed Jan 19, 2024
1 parent efbf010 commit 7fa3f7b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions validator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ORDER BY ordinal_position
const indexSelect = `
SELECT
i.relname as index_name,
array_to_string(array_agg(a.attname), ', ') as column_names
array_to_string(array_agg(a.attname), ',') as column_names
FROM
pg_class t,
pg_class i,
Expand Down Expand Up @@ -135,9 +135,6 @@ func getColumnData(db *sql.DB, queueName string) (map[string]struct{}, error) {
if err := rows.Err(); err != nil {
return nil, errors.Wrap(err, "reading schema of queue table")
}
if err := rows.Close(); err != nil {
return nil, errors.Wrap(err, "closing schema query of queue table")
}
if err != nil {
return nil, fmt.Errorf("error recovering queue columns %v", err)
}
Expand Down Expand Up @@ -165,9 +162,6 @@ func getIndexData(db *sql.DB, queueName string) (map[string][]string, error) {
if err := rows.Close(); err != nil {
return nil, errors.Wrap(err, "closing index schema query of queue table")
}
if err != nil {
return nil, fmt.Errorf("error recovering queue indexes %v", err)
}
return indexes, nil
}

Expand Down

0 comments on commit 7fa3f7b

Please sign in to comment.