Merge pull request #289 from polys/patch-1

Fix queue/table name null or whitespace check
This commit is contained in:
Cesar De la Torre 2017-08-23 10:44:41 -07:00 committed by GitHub
commit 0e46a8c16d

View File

@ -70,7 +70,7 @@ namespace Microsoft.Extensions.HealthChecks
var properties = await tableClient.GetServicePropertiesAsync().ConfigureAwait(false);
if (String.IsNullOrWhiteSpace(tableName))
if (!String.IsNullOrWhiteSpace(tableName))
{
var table = tableClient.GetTableReference(tableName);
@ -150,7 +150,7 @@ namespace Microsoft.Extensions.HealthChecks
var properties = await queueClient.GetServicePropertiesAsync().ConfigureAwait(false);
if (String.IsNullOrWhiteSpace(queueName))
if (!String.IsNullOrWhiteSpace(queueName))
{
var queue = queueClient.GetQueueReference(queueName);