Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/EditorConfig.Core/EditorConfigParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ where File.Exists(configFile)

private IEnumerable<string> AllParentDirectories(string fullPath)
{
var root = new DirectoryInfo(fullPath).Root.FullName;
var dir = Path.GetDirectoryName(fullPath);
do
{
Expand All @@ -143,7 +142,7 @@ private IEnumerable<string> AllParentDirectories(string fullPath)
var dirInfo = new DirectoryInfo(dir);
if (dirInfo.Parent == null) yield break;
dir = dirInfo.Parent.FullName;
} while (dir != root);
} while (true);
}
}
}
Loading