Return the nonrecursive directory watcher correctly on platforms that dont support recrusive directory watching
Fixes #26288
This commit is contained in:
parent
cea4838972
commit
512a49be81
1 changed files with 1 additions and 2 deletions
|
@ -756,8 +756,7 @@ namespace ts {
|
||||||
if (recursive) {
|
if (recursive) {
|
||||||
return watchDirectoryRecursively(directoryName, callback);
|
return watchDirectoryRecursively(directoryName, callback);
|
||||||
}
|
}
|
||||||
watchDirectory(directoryName, callback);
|
return watchDirectory(directoryName, callback);
|
||||||
return undefined!; // TODO: GH#18217
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue