@@ -290,7 +290,7 @@ public virtual void RestoreOriginalModule(string module, string identifier)
290
290
_fileSystem . Copy ( backupPath , module , true ) ;
291
291
_fileSystem . Delete ( backupPath ) ;
292
292
_backupList . TryRemove ( module , out string _ ) ;
293
- } , retryStrategy , RetryAttempts , _retryExceptionList ) ;
293
+ } , retryStrategy , RetryAttempts ) ;
294
294
295
295
_retryHelper . Retry ( ( ) =>
296
296
{
@@ -301,7 +301,7 @@ public virtual void RestoreOriginalModule(string module, string identifier)
301
301
_fileSystem . Delete ( backupSymbolPath ) ;
302
302
_backupList . TryRemove ( symbolFile , out string _ ) ;
303
303
}
304
- } , retryStrategy , RetryAttempts , _retryExceptionList ) ;
304
+ } , retryStrategy , RetryAttempts ) ;
305
305
}
306
306
307
307
public virtual void RestoreOriginalModules ( )
@@ -318,14 +318,14 @@ public virtual void RestoreOriginalModules()
318
318
_fileSystem . Copy ( backupPath , key , true ) ;
319
319
_fileSystem . Delete ( backupPath ) ;
320
320
_backupList . TryRemove ( key , out string _ ) ;
321
- } , retryStrategy , RetryAttempts , _retryExceptionList ) ;
321
+ } , retryStrategy , RetryAttempts ) ;
322
322
}
323
323
}
324
324
325
325
public void DeleteHitsFile ( string path )
326
326
{
327
327
Func < TimeSpan > retryStrategy = CreateRetryStrategy ( ) ;
328
- _retryHelper . Retry ( ( ) => _fileSystem . Delete ( path ) , retryStrategy , RetryAttempts , _retryExceptionList ) ;
328
+ _retryHelper . Retry ( ( ) => _fileSystem . Delete ( path ) , retryStrategy , RetryAttempts ) ;
329
329
}
330
330
331
331
public bool IsValidFilterExpression ( string filter )
@@ -393,10 +393,7 @@ private string GetModuleKeysForExcludeFilters(IEnumerable<string> filters, char
393
393
394
394
private string [ ] GetValidFilters ( IEnumerable < string > filters )
395
395
{
396
- return ( filters ?? Array . Empty < string > ( ) )
397
- . Where ( IsValidFilterExpression )
398
- . Where ( x => x . EndsWith ( "*" ) )
399
- . ToArray ( ) ;
396
+ return [ .. ( filters ?? [ ] ) . Where ( IsValidFilterExpression ) . Where ( x => x . EndsWith ( "*" ) ) ] ;
400
397
}
401
398
402
399
private static string GetExcludeModuleKeysForValidFilters ( char escapeSymbol , string moduleKeys , string [ ] validFilters )
0 commit comments