提交 b12b198f 编写于 作者: E Emily Marigold Klassen

Tiny optimisation to tree sorting

上级 8396f97c
......@@ -569,10 +569,10 @@ export class FileSorter implements ISorter {
public compare(tree: ITree, statA: FileStat, statB: FileStat): number {
// Do not sort roots
if (statA.isRoot && statB.isRoot) {
if (statA.isRoot) {
if (statB.isRoot) {
return statA.rootIndex - statB.rootIndex;
}
if (statA.isRoot) {
return -1;
}
if (statB.isRoot) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册