fix lint
This commit is contained in:
parent
b20e36fb5f
commit
89ff7fa804
|
|
@ -20,8 +20,10 @@ function stripAnsiEscapes(str: string): string {
|
|||
}
|
||||
|
||||
function enumerate(items: string[]) {
|
||||
if (items.length === 0) return '';
|
||||
if (items.length === 1) return items[0];
|
||||
if (items.length === 0)
|
||||
return '';
|
||||
if (items.length === 1)
|
||||
return items[0];
|
||||
return items.slice(0, -1).join(', ') + ' and ' + items[items.length - 1];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue