Skip to content

Commit

Permalink
safeOLHM + map
Browse files Browse the repository at this point in the history
  • Loading branch information
1e1f committed Feb 20, 2017
1 parent bb5c8ab commit 31b6c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/olhm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function safeOLHM<T>(olhm: OLHM<T>): T[] {
graph.addNode(k);
}
for (const k of keys) {
if (olhm[k] && olhm[k].require) {
if (isOLHV(olhm[k])) {
graph.addDependency(k, olhm[k].require);
}
}
Expand Down Expand Up @@ -103,7 +103,7 @@ export function map<T>(olhm: OLHM<T>, fn: (v: any, k?: string) => T): T[] {
graph.addNode(k);
}
for (const k of keys) {
if (olhm[k] && olhm[k].require) {
if (isOLHV(olhm[k])) {
graph.addDependency(k, olhm[k].require);
}
}
Expand Down

0 comments on commit 31b6c25

Please sign in to comment.