未验证 提交 386d0b19 编写于 作者: S Stephen Toub 提交者: GitHub

Delete invalid assert in PathInternal.CaseSensitivity (#54325)

* Delete invalid assert in PathInternal.CaseSensitivity

* Update PathInternal.CaseSensitivity.cs
上级 c4c3c93c
......@@ -48,11 +48,10 @@ private static bool GetIsCaseSensitive()
return !File.Exists(lowerCased);
}
}
catch (Exception exc)
catch
{
// In case something goes terribly wrong, we don't want to fail just because
// of a casing test, so we assume case-insensitive-but-preserving.
Debug.Fail("Casing test failed: " + exc);
// In case something goes wrong (e.g. temp pointing to a privilieged directory), we don't
// want to fail just because of a casing test, so we assume case-insensitive-but-preserving.
return false;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册