diff --git a/src/services/services.ts b/src/services/services.ts index 41a4ee2b8e..f78a339460 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1412,16 +1412,12 @@ module ts { useCaseSensitiveFileNames: () => useCaseSensitivefilenames, getNewLine: () => "\r\n", getDefaultLibFilename: (): string => { - // In the case there is no host (such as in fourslash test), return "" return host.getDefaultLibFilename(); }, writeFile: (filename, data, writeByteOrderMark) => { - if (writer !== undefined) { - writer(filename, data, writeByteOrderMark); - } + writer(filename, data, writeByteOrderMark); }, getCurrentDirectory: (): string => { - // In the case there is no host (such as in fourslash test), return "" return host.getCurrentDirectory(); } };