Fixing linter and test errors

This commit is contained in:
Richard Knoll
2016-05-25 17:07:36 -07:00
parent 084b94c4c1
commit db856431e8
5 changed files with 20 additions and 32 deletions

View File

@@ -367,7 +367,7 @@ namespace ts {
const files: string[] = [];
const directories: string[] = [];
for (const entry of entries) {
// This is necessary because on some file system node fails to exclude
// This is necessary because on some file system node fails to exclude
// "." and "..". See https://github.com/nodejs/node/issues/4002
if (entry === "." || entry === "..") {
continue;
@@ -391,10 +391,6 @@ namespace ts {
function readDirectory(path: string, extensions?: string[], excludes?: string[], includes?: string[]): string[] {
return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), getAccessibleFileSystemEntries);
}
function getCanonicalPath(path: string): string {
return useCaseSensitiveFileNames ? path : path.toLowerCase();
}
const enum FileSystemEntryKind {
File,