Skip to content

Commit

Permalink
Update flow/connectors/postgres/validate.go
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Dubé <[email protected]>
  • Loading branch information
Amogh-Bharadwaj and serprex authored Feb 15, 2024
1 parent 151b29d commit 0e3dff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/postgres/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (c *PostgresConnector) CheckReplicationConnectivity(ctx context.Context) er
return fmt.Errorf("failed to create replication connection: %v", err)
}

defer conn.Close(ctx)
return conn.Close(ctx)

return nil

Check failure on line 158 in flow/connectors/postgres/validate.go

View workflow job for this annotation

GitHub Actions / lint

unreachable: unreachable code (govet)
}

0 comments on commit 0e3dff7

Please sign in to comment.