Skip to content

Commit

Permalink
sealing classes
Browse files Browse the repository at this point in the history
  • Loading branch information
santisq committed Sep 11, 2023
1 parent 4e82c7b commit 7721aab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/PSTree/PSTreeCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace PSTree;

internal class PSTreeCache
internal sealed class PSTreeCache
{
private readonly List<PSTreeFileSystemInfo> _items;

Expand Down
2 changes: 1 addition & 1 deletion src/PSTree/PSTreeIndexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace PSTree;

internal class PSTreeIndexer
internal sealed class PSTreeIndexer
{
private readonly Dictionary<string, PSTreeDirectory> _indexer = new();

Expand Down
4 changes: 2 additions & 2 deletions src/PSTree/PathExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ internal static class PathExtensions

cmdlet.WriteError(ExceptionHelpers
.InvalidProviderError(path, provider));

continue;
}

Expand Down Expand Up @@ -95,7 +94,8 @@ internal static class PathExtensions
bool isLiteral,
PSCmdlet cmdlet,
bool throwOnInvalidPath = false,
bool throwOnInvalidProvider = false) => NormalizePath(
bool throwOnInvalidProvider = false) =>
NormalizePath(
new[] { path },
isLiteral,
cmdlet,
Expand Down

0 comments on commit 7721aab

Please sign in to comment.