Skip to content

Commit f41b4e0

Browse files
committed
Change usage of Array.prototype.find to ts.find.
1 parent c2898db commit f41b4e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/moduleSpecifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ namespace ts.moduleSpecifiers {
203203
return; // Don't want to a package to globally import from itself
204204
}
205205

206-
const target = targets.find(t => compareStrings(t.slice(0, resolved.length + 1), resolved + "/") === Comparison.EqualTo);
206+
const target = find(targets, t => compareStrings(t.slice(0, resolved.length + 1), resolved + "/") === Comparison.EqualTo);
207207
if (target === undefined) return;
208208

209209
const relative = getRelativePathFromDirectory(resolved, target, getCanonicalFileName);

0 commit comments

Comments
 (0)