C#: Address review comments.

This commit is contained in:
Calum Grant
2020-03-31 15:21:51 +01:00
parent 69041bc959
commit 9a5e80667e
3 changed files with 23 additions and 44 deletions

View File

@@ -127,8 +127,8 @@ namespace Semmle.Util
if (parent != null)
{
string? name = Path.GetFileName(path);
string? parentPath = cache.GetCanonicalPath(parent.FullName);
var name = Path.GetFileName(path);
var parentPath = cache.GetCanonicalPath(parent.FullName);
try
{
string[] entries = Directory.GetFileSystemEntries(parentPath, name);