Skip to content

Commit 14886f0

Browse files
Vincent D'Onofriopeggyrayzis
Vincent D'Onofrio
authored andcommitted
Remove unreachable code from paginateResults
1 parent 48d70f2 commit 14886f0

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

Diff for: final/server/src/utils.js

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ module.exports.paginateResults = ({
2626
Math.min(results.length, cursorIndex + 1 + pageSize),
2727
)
2828
: results.slice(0, pageSize);
29-
30-
results.slice(cursorIndex >= 0 ? cursorIndex + 1 : 0, cursorIndex >= 0);
3129
};
3230

3331
module.exports.createStore = () => {

Diff for: start/server/src/utils.js

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ module.exports.paginateResults = ({
2626
Math.min(results.length, cursorIndex + 1 + pageSize),
2727
)
2828
: results.slice(0, pageSize);
29-
30-
results.slice(cursorIndex >= 0 ? cursorIndex + 1 : 0, cursorIndex >= 0);
3129
};
3230

3331
module.exports.createStore = () => {

0 commit comments

Comments
 (0)