Skip to content

Commit f06735d

Browse files
aciccarelloblakeembrey
authored andcommitted
Fix type converter removal (TypeStrong#581)
1 parent 80c920c commit f06735d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/converter/converter.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,14 @@ export class Converter extends ChildableComponent<Application, ConverterComponen
235235
}
236236

237237
private removeTypeConverter(converter: ConverterTypeComponent) {
238-
let index = this.typeNodeConverters.indexOf(<any> converter);
239-
if (index !== -1) {
240-
this.typeTypeConverters.splice(index, 1);
238+
const typeIndex = this.typeTypeConverters.indexOf(<any> converter);
239+
if (typeIndex !== -1) {
240+
this.typeTypeConverters.splice(typeIndex, 1);
241241
}
242242

243-
index = this.typeNodeConverters.indexOf(<any> converter);
244-
if (index !== -1) {
245-
this.typeNodeConverters.splice(index, 1);
243+
const nodeIndex = this.typeNodeConverters.indexOf(<any> converter);
244+
if (nodeIndex !== -1) {
245+
this.typeNodeConverters.splice(nodeIndex, 1);
246246
}
247247
}
248248

0 commit comments

Comments
 (0)