prefer-const

This commit is contained in:
Alexander T
2019-06-19 17:58:49 +03:00
parent 504b932f7b
commit 5ce8c831b4
16 changed files with 50 additions and 53 deletions

View File

@@ -73,7 +73,7 @@ function getKnownAuthorMaps() {
}
function deduplicate<T>(array: T[]): T[] {
let result: T[] = [];
const result: T[] = [];
if (array) {
for (const item of array) {
if (result.indexOf(item) < 0) {