File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/Accounts/Authentication/Authentication Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,8 @@ public AuthTelemetryRecord GetDataForTelemetry()
87
87
protected virtual void CollectTelemetry ( TokenCredential credential , TokenCredentialOptions options = null )
88
88
{
89
89
telemetry . TokenCredentialName = credential ? . GetType ( ) ? . Name ;
90
- if ( options != null )
91
- {
92
- telemetry . SetProperty ( AuthTelemetryRecord . TokenCacheEnabled , CheckTokenCachePersistanceEnabled ( ) . ToString ( ) ) ;
93
- telemetry . SetProperty ( nameof ( TokenCredentialOptions ) , options . GetType ( ) ? . Name ) ;
94
- }
90
+ telemetry . SetProperty ( AuthTelemetryRecord . TokenCacheEnabled , CheckTokenCachePersistanceEnabled ( ) . ToString ( ) ) ;
91
+ telemetry . SetProperty ( nameof ( TokenCredentialOptions ) , options ? . GetType ( ) ? . Name ) ;
95
92
}
96
93
97
94
protected Func < bool > CheckTokenCachePersistanceEnabled = ( ) => { return false ; } ;
You can’t perform that action at this time.
0 commit comments