Skip to content

Commit

Permalink
minor lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Cadetg committed May 30, 2024
1 parent 9952e17 commit 6afdddc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/controller/databaserequest_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ func (r *DatabaseRequestReconciler) handleError(
return ctrl.Result{}, err
}

func (r *DatabaseRequestReconciler) handleSeed(ctx context.Context, databaseRequest *crdv1alpha1.DatabaseRequest) (*seedDatabaseInfo, error) {
func (r *DatabaseRequestReconciler) handleSeed(
ctx context.Context,
databaseRequest *crdv1alpha1.DatabaseRequest,
) (*seedDatabaseInfo, error) {
logger := log.FromContext(ctx)
logger.Info("Get seed database info")
seedInfo, err := r.relationalDatabaseInfoFromSeed(
Expand Down Expand Up @@ -814,7 +817,8 @@ func (r *DatabaseRequestReconciler) relationalDatabaseInfoFromSeed(
if dbConnection.Enabled && dbConnection.Hostname == dbInfo.hostName &&
dbConnection.Port == dbInfo.port {
log.FromContext(ctx).Info("Found provider", "provider", dbProvider.Name)
connection = &dbConnection
conn := dbConnection
connection = &conn
databaseProviderRef = &crdv1alpha1.DatabaseConnectionReference{
Name: connection.Name,
DatabaseObjectReference: v1.ObjectReference{
Expand Down

0 comments on commit 6afdddc

Please sign in to comment.