perf: remove redundant sort (#2510)
This commit is contained in:
1 parent
d90dce7e4d
commit
66bc58b4bf
2 files changed
+4
-5
No files matched your search
@@ -144,9 +144,7 @@ func (watch *watch) processUpdate(update watchUpdate) {
|
||||
switch update.kind {
|
||||
case "dir":
|
||||
if _, err := os.Lstat(update.path); err == nil {
|
||||
dir := newDir(update.path)
|
||||
dir.sort()
|
||||
watch.dirChan <- dir
|
||||
watch.dirChan <- newDir(update.path)
|
||||
}
|
||||
case "file":
|
||||
if _, err := os.Lstat(update.path); err == nil {
|
||||
|
||||
Reference in new issue
Block a user