Skip to content

Commit

Permalink
fix: improve code quality
Browse files Browse the repository at this point in the history
Signed-off-by: Xoán Mallón <[email protected]>
  • Loading branch information
xoanmm committed Feb 23, 2023
1 parent cf37c97 commit 8acd45f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/scalers/rabbitmq_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,11 @@ func parseRabbitMQMetadata(config *ScalerConfig) (*rabbitMQMetadata, error) {
}

// Resolve host value
meta.host, err = getRabbitMQHostValueFromConfig(config, meta.protocol)
rabbitMQHost, err := getRabbitMQHostValueFromConfig(config, meta.protocol)
if err != nil {
return nil, err
}
meta.host = rabbitMQHost

// Resolve TLS authentication parameters
meta.enableTLS = false
Expand Down

0 comments on commit 8acd45f

Please sign in to comment.