Skip to content

Commit

Permalink
Fix style issues 5
Browse files Browse the repository at this point in the history
  • Loading branch information
iSazonov committed Dec 28, 2020
1 parent 149b003 commit 3ed70f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ internal class FileSystemProviderEnumerable<TResult> : IEnumerable<TResult>
private DelegateEnumerator? _enumerator;

/// <summary>
/// Initializes a new instance of the FileSystemProviderEnumerable
/// that allows utilizing custom filter predicates and tranform delegates.
/// Initializes a new instance of the <see cref="FileSystemProviderEnumerable{TResult}"/> class.
/// The class allows utilizing custom filter predicates and tranform delegates.
/// </summary>
/// <param name="directory">The path of the starting directory.</param>
/// <param name="transform">The delegate to transform internal data to a result.</param>
Expand Down Expand Up @@ -100,7 +100,7 @@ protected override bool ShouldIncludeEntry(ref FileSystemEntry entry)
=> _enumerable.ShouldIncludePredicate?.Invoke(ref entry) ?? true;

protected override bool ContinueOnError(int error)
// Here _enumerable can be still null because base constructor can throw 'access denied' before we assign _enumerable.
//// Here _enumerable can be still null because base constructor can throw 'access denied' before we assign _enumerable.
=> _enumerable?.ShouldContinueOnErrorPredicate?.Invoke(error) ?? false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ static uint GetCurrentDepth(ref FileSystemEntry entry)
}

bool FileSystemEntryFilter(ref FileSystemEntry entry)
{
if (errorCode != 0)
{
if (errorCode != 0)
{
// While enumerating we can get an error.
// In the case ShouldContinueOnErrorPredicate sets the error code.
Expand Down

0 comments on commit 3ed70f0

Please sign in to comment.