Fix queue/table name null or whitespace check
This commit is contained in:
parent
5e1d343759
commit
3928ead483
@ -70,7 +70,7 @@ namespace Microsoft.Extensions.HealthChecks
|
|||||||
|
|
||||||
var properties = await tableClient.GetServicePropertiesAsync().ConfigureAwait(false);
|
var properties = await tableClient.GetServicePropertiesAsync().ConfigureAwait(false);
|
||||||
|
|
||||||
if (String.IsNullOrWhiteSpace(tableName))
|
if (!String.IsNullOrWhiteSpace(tableName))
|
||||||
{
|
{
|
||||||
var table = tableClient.GetTableReference(tableName);
|
var table = tableClient.GetTableReference(tableName);
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ namespace Microsoft.Extensions.HealthChecks
|
|||||||
|
|
||||||
var properties = await queueClient.GetServicePropertiesAsync().ConfigureAwait(false);
|
var properties = await queueClient.GetServicePropertiesAsync().ConfigureAwait(false);
|
||||||
|
|
||||||
if (String.IsNullOrWhiteSpace(queueName))
|
if (!String.IsNullOrWhiteSpace(queueName))
|
||||||
{
|
{
|
||||||
var queue = queueClient.GetQueueReference(queueName);
|
var queue = queueClient.GetQueueReference(queueName);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user