Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
- code linting
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
  • Loading branch information
baywet committed Jan 16, 2023
1 parent b4d0c5a commit 4120264
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/AzureIdentityAccessTokenProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ namespace Microsoft.Kiota.Authentication.Azure;
public class AzureIdentityAccessTokenProvider : IAccessTokenProvider, IDisposable
{
private readonly TokenCredential _credential;
private readonly ObservabilityOptions _obsOptions;
private readonly ActivitySource _activitySource;
private readonly HashSet<string> _scopes;
/// <inheritdoc />
Expand All @@ -43,8 +42,7 @@ public AzureIdentityAccessTokenProvider(TokenCredential credential, string [] al
else
_scopes = new(scopes, StringComparer.OrdinalIgnoreCase);

_obsOptions = observabilityOptions ?? new();
_activitySource = new(_obsOptions.TracerInstrumentationName);
_activitySource = new((observabilityOptions ?? new()).TracerInstrumentationName);
}

private const string ClaimsKey = "claims";
Expand Down

0 comments on commit 4120264

Please sign in to comment.