Skip to content

Commit 98ea894

Browse files
authored
Move code comment (#3932)
* Move code comment This code comment got detached from its logic, so moving it closer
1 parent 67fe735 commit 98ea894

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/controller/postgrescluster/postgres.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,6 @@ func (r *Reconciler) reconcilePostgresDatabases(
231231
}
232232
}
233233

234-
// Calculate a hash of the SQL that should be executed in PostgreSQL.
235-
236234
var pgAuditOK, postgisInstallOK bool
237235
create := func(ctx context.Context, exec postgres.Executor) error {
238236
if pgAuditOK = pgaudit.EnableInPostgreSQL(ctx, exec) == nil; !pgAuditOK {
@@ -259,6 +257,7 @@ func (r *Reconciler) reconcilePostgresDatabases(
259257
return postgres.CreateDatabasesInPostgreSQL(ctx, exec, databases.List())
260258
}
261259

260+
// Calculate a hash of the SQL that should be executed in PostgreSQL.
262261
revision, err := safeHash32(func(hasher io.Writer) error {
263262
// Discard log messages about executing SQL.
264263
return create(logging.NewContext(ctx, logging.Discard()), func(

0 commit comments

Comments
 (0)