Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

Fix bug with checking if the queue or table name is null or whitespace #64

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static HealthCheckBuilder AddAzureTableStorageCheck(HealthCheckBuilder bu

var properties = await tableClient.GetServicePropertiesAsync().ConfigureAwait(false);

if (String.IsNullOrWhiteSpace(tableName))
if (!String.IsNullOrWhiteSpace(tableName))
{
var table = tableClient.GetTableReference(tableName);

Expand Down Expand Up @@ -150,7 +150,7 @@ public static HealthCheckBuilder AddAzureQueueStorageCheck(HealthCheckBuilder bu

var properties = await queueClient.GetServicePropertiesAsync().ConfigureAwait(false);

if (String.IsNullOrWhiteSpace(queueName))
if (!String.IsNullOrWhiteSpace(queueName))
{
var queue = queueClient.GetQueueReference(queueName);

Expand Down