File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change 11using  System ; 
22using  System . Collections . Generic ; 
3- using  System . Runtime . Serialization ; 
43
54namespace  DynamoServices 
65{ 
@@ -70,15 +69,9 @@ internal static void ClearAllKnownTLSKeys()
7069        /// <returns></returns> 
7170        public  static string  GetTraceData ( string  key ) 
7271        { 
73-             string  data ;   
74-             if  ( ! LocalStorageSlot . TryGetValue ( key ,  out  data ) ) 
75-             { 
76-                 return  null ; 
77-             } 
78-             else 
79-             { 
72+             if  ( LocalStorageSlot . TryGetValue ( key ,  out  string  data ) ) 
8073                return  data ; 
81-             } 
74+             return   null ; 
8275        } 
8376
8477        /// <summary> 
@@ -88,14 +81,7 @@ public static string GetTraceData(string key)
8881        /// <param name="value"></param> 
8982        public  static void  SetTraceData ( string  key ,  string  value ) 
9083        { 
91-             if  ( LocalStorageSlot . ContainsKey ( key ) ) 
92-             { 
93-                 LocalStorageSlot [ key ]  =  value ; 
94-             } 
95-             else 
96-             { 
97-                 LocalStorageSlot . Add ( key ,  value ) ; 
98-             } 
84+             LocalStorageSlot [ key ]  =  value ; 
9985        } 
10086    } 
10187} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments