add suggested fix
This commit is contained in:
parent
a10449bbbc
commit
097d1c9383
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ namespace GodotTools.Utils
|
|||
searchDirs.AddRange(pathDirs);
|
||||
|
||||
string nameExt = Path.GetExtension(name);
|
||||
bool hasPathExt = string.IsNullOrEmpty(nameExt) || windowsExts.Contains(nameExt, StringComparer.OrdinalIgnoreCase);
|
||||
bool hasPathExt = !string.IsNullOrEmpty(nameExt) && windowsExts.Contains(nameExt, StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
searchDirs.Add(System.IO.Directory.GetCurrentDirectory()); // last in the list
|
||||
|
||||
|
|
Loading…
Reference in a new issue