@@ -15,7 +15,7 @@ internal sealed class PhysicalDirectory : VirtualDirectory
1515 /// including system and hidden files, not recurse through subdirectories,
1616 /// and ignore inaccessible files.
1717 /// </summary>
18- private static readonly EnumerationOptions DefaultOptions = new ( )
18+ private static readonly EnumerationOptions s_defaultOptions = new ( )
1919 {
2020 AttributesToSkip = 0 ,
2121 RecurseSubdirectories = false ,
@@ -85,7 +85,7 @@ protected override IAsyncEnumerable<VirtualNode> GetFileNodesCoreAsync(Cancellat
8585 // its existence was checked.
8686
8787 var nodes = Directory . Exists ( _physicalPath )
88- ? new FileSystemEnumerable < VirtualNode > ( _physicalPath , FindTransform , DefaultOptions )
88+ ? new FileSystemEnumerable < VirtualNode > ( _physicalPath , FindTransform , s_defaultOptions )
8989 : Enumerable . Empty < VirtualNode > ( ) ;
9090
9191 return nodes . ToAsyncEnumerable ( ) ;
@@ -108,17 +108,17 @@ protected override IAsyncEnumerable<VirtualFile> GetFilesCoreAsync(CancellationT
108108
109109 if ( Directory . Exists ( _physicalPath ) )
110110 {
111- nodes = new FileSystemEnumerable < VirtualFile > ( _physicalPath , FindTransform , DefaultOptions )
111+ nodes = new FileSystemEnumerable < VirtualFile > ( _physicalPath , FindTransform , s_defaultOptions )
112112 {
113- ShouldIncludePredicate = ( ref FileSystemEntry entry ) => ! entry . IsDirectory
113+ ShouldIncludePredicate = ( ref entry ) => ! entry. IsDirectory
114114 } ;
115115 }
116116
117117 return nodes . ToAsyncEnumerable ( ) ;
118118
119119 VirtualFile FindTransform ( ref FileSystemEntry entry )
120120 {
121- Debug . Assert ( entry . IsDirectory == false ) ;
121+ Debug . Assert ( ! entry . IsDirectory ) ;
122122
123123 var fullName = VirtualPath . Join ( FullName , entry . FileName ) ;
124124 var physicalPath = entry . ToFullPath ( ) ;
@@ -134,9 +134,9 @@ protected override IAsyncEnumerable<VirtualDirectory> GetDirectoriesCoreAsync(Ca
134134
135135 if ( Directory . Exists ( _physicalPath ) )
136136 {
137- nodes = new FileSystemEnumerable < VirtualDirectory > ( _physicalPath , FindTransform , DefaultOptions )
137+ nodes = new FileSystemEnumerable < VirtualDirectory > ( _physicalPath , FindTransform , s_defaultOptions )
138138 {
139- ShouldIncludePredicate = ( ref FileSystemEntry entry ) => entry . IsDirectory
139+ ShouldIncludePredicate = ( ref entry ) => entry. IsDirectory
140140 } ;
141141 }
142142
0 commit comments