mirror of
https://github.com/withastro/astro.git
synced 2025-03-31 23:31:30 -05:00
[ci] format
This commit is contained in:
parent
1e293a1b81
commit
72a3dd31e9
2 changed files with 1 additions and 3 deletions
|
@ -114,7 +114,7 @@ export function createGetCollection({
|
|||
if (typeof filter === 'function') {
|
||||
return entries.filter(filter);
|
||||
} else {
|
||||
// Clone the array so users can safely mutate it.
|
||||
// Clone the array so users can safely mutate it.
|
||||
// slice() is faster than ...spread for large arrays.
|
||||
return entries.slice();
|
||||
}
|
||||
|
|
|
@ -389,7 +389,5 @@ describe('Content Collections', () => {
|
|||
|
||||
assert.equal(index, anotherPage);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue