1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2025-01-25 01:32:58 +02:00

Fix typo in linter (#6818)

In some circumstances with ineffective segments, we have the following error:

> ReferenceError: chain is not defined
This commit is contained in:
Alexandre Paradis 2021-11-09 19:12:10 -05:00 committed by GitHub
parent dfadae5df5
commit 867d64e316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -590,7 +590,7 @@ module.exports = {
segment.chainEnd,
);
if (readableChain.length > 20) {
readableChain = `${chain.substring(0, 20)}...`;
readableChain = `${readableChain.substring(0, 20)}...`;
}
errorMsg += ` in chain "${readableChain}"`;
}