Skip to content

Commit

Permalink
chore: apply lint and formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] committed Apr 25, 2024
1 parent aa90644 commit f5b31a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/tests/server/react/__testHelpers.tsx
Expand Up @@ -133,7 +133,7 @@ export function createAppRouter() {
const last = items[items.length - 1];
const nextIndex = db.posts.findIndex((item) => item === last) + 1;
if (db.posts[nextIndex]) {
nextCursor = db.posts[nextIndex]!.createdAt;
nextCursor = db.posts[nextIndex].createdAt;
}
return {
items,
Expand Down Expand Up @@ -174,10 +174,10 @@ export function createAppRouter() {
const nextIndex = db.posts.findIndex((item) => item === last) + 1;
const prevIndex = db.posts.findIndex((item) => item === first) - 1;
if (db.posts[nextIndex]) {
nextCursor = db.posts[nextIndex]!.createdAt;
nextCursor = db.posts[nextIndex].createdAt;
}
if (db.posts[prevIndex]) {
prevCursor = db.posts[prevIndex]!.createdAt;
prevCursor = db.posts[prevIndex].createdAt;
}
return {
items,
Expand Down
2 changes: 1 addition & 1 deletion packages/tests/server/react/invalidateRouters.test.tsx
Expand Up @@ -145,7 +145,7 @@ const ctx = konn()
const last = items[items.length - 1];
const nextIndex = db.posts.findIndex((item) => item === last) + 1;
if (db.posts[nextIndex]) {
nextCursor = db.posts[nextIndex]!.createdAt;
nextCursor = db.posts[nextIndex].createdAt;
}
return {
items,
Expand Down

0 comments on commit f5b31a0

Please sign in to comment.