Skip to content

Commit a094875

Browse files
committed
Fix lint issues.
1 parent 227f152 commit a094875

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/compiler/core.ts

+9-7
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ namespace ts {
126126
constructor(shimMap: ShimMap<T>, selector: (data: MapLike<T>, key: string) => U) {
127127
this.shimMap = shimMap;
128128
this.selector = selector;
129-
129+
130130
if (!shimMap.currentIteratoKeys) {
131131
// Create the key array on the map over which we (and other new iterators)
132132
// will iterate.
@@ -142,17 +142,18 @@ namespace ts {
142142
// Check if we still have the same key array. Otherwise, this means
143143
// an element has been deleted from the map in the meanwhile, so we
144144
// cannot continue.
145-
if (this.index != -1 && this.originalIteratoKeys != this.shimMap.currentIteratoKeys)
145+
if (this.index !== -1 && this.originalIteratoKeys !== this.shimMap.currentIteratoKeys) {
146146
throw new Error("Cannot continue iteration because a map element has been deleted.");
147+
}
147148

148149
const iteratorKeys = this.originalIteratoKeys;
149-
if (this.index != -1 && this.index < iteratorKeys.length) {
150+
if (this.index !== -1 && this.index < iteratorKeys.length) {
150151
const index = this.index++;
151152
return { value: this.selector(this.shimMap.data, iteratorKeys[index]), done: false };
152153
}
153154
else {
154155
// Ensure subsequent invocations will always return done.
155-
this.index = -1;
156+
this.index = -1;
156157

157158
return { value: undefined as never, done: true };
158159
}
@@ -163,7 +164,7 @@ namespace ts {
163164
size = 0;
164165

165166
data = createDictionaryObject<T>();
166-
167+
167168
currentIteratoKeys?: string[];
168169

169170
get(key: string): T | undefined {
@@ -179,7 +180,7 @@ namespace ts {
179180
this.currentIteratoKeys.push(key);
180181
}
181182
}
182-
183+
183184
this.data[key] = value;
184185
return this;
185186
}
@@ -232,8 +233,9 @@ namespace ts {
232233
const iterator = this.entries();
233234
while (true) {
234235
const { value: entry, done } = iterator.next();
235-
if (done)
236+
if (done) {
236237
break;
238+
}
237239

238240
action(entry[1], entry[0]);
239241
}

0 commit comments

Comments
 (0)