From 512a49be81f7303b67618888fd34ea399232cd32 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 14 Aug 2018 12:14:22 -0700 Subject: [PATCH] Return the nonrecursive directory watcher correctly on platforms that dont support recrusive directory watching Fixes #26288 --- src/compiler/sys.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 8f6a58a356..eaa910a0b5 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -756,8 +756,7 @@ namespace ts { if (recursive) { return watchDirectoryRecursively(directoryName, callback); } - watchDirectory(directoryName, callback); - return undefined!; // TODO: GH#18217 + return watchDirectory(directoryName, callback); }; }