Skip to content

Commit

Permalink
Removed unnecessary instance variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Daksha Asrani committed Jan 14, 2019
1 parent cc1b60a commit 62be424
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public sealed class AzureStorageOrchestrationService :
readonly WorkItemQueue workItemQueue;
readonly ConcurrentDictionary<string, ActivitySession> activeActivitySessions;
readonly MessageManager messageManager;
readonly StorageAccountDetails storageAccountDetails;

readonly ITrackingStore trackingStore;

Expand Down Expand Up @@ -101,11 +100,10 @@ public AzureStorageOrchestrationService(AzureStorageOrchestrationServiceSettings

this.settings = settings;
this.tableEntityConverter = new TableEntityConverter();
this.storageAccountDetails = settings.StorageAccountDetails;

CloudStorageAccount account = this.storageAccountDetails == null
CloudStorageAccount account = settings.StorageAccountDetails == null
? CloudStorageAccount.Parse(settings.StorageConnectionString)
: new CloudStorageAccount(this.storageAccountDetails.StorageCredentials, this.storageAccountDetails.AccountName, this.storageAccountDetails.EndpointSuffix, true);
: new CloudStorageAccount(settings.StorageAccountDetails.StorageCredentials, settings.StorageAccountDetails.AccountName, settings.StorageAccountDetails.EndpointSuffix, true);
this.storageAccountName = account.Credentials.AccountName;
this.stats = new AzureStorageOrchestrationServiceStats();
this.queueClient = account.CreateCloudQueueClient();
Expand Down

0 comments on commit 62be424

Please sign in to comment.