mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
Fix/Improve linting
This commit is contained in:
@@ -10,7 +10,9 @@ export function addTitles(sprites: ColorExtraSets, titles: string[]): ColorExtra
|
||||
}
|
||||
|
||||
export function addLabels(sprites: ColorExtraSets, labels: string[]) {
|
||||
sprites && sprites.forEach((s, i) => s && s[0] ? s[0]!.label = labels[i] : undefined);
|
||||
if (sprites) {
|
||||
sprites.forEach((s, i) => s && s[0] ? s[0]!.label = labels[i] : undefined);
|
||||
}
|
||||
return sprites;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user