Skip to content

Commit

Permalink
internal: Update formatting based on prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jul 13, 2024
1 parent 67def23 commit b836533
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/controller/actions/createSetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export function createSetResponse<
): SetResponseAction<E> {
const expiryLength: number =
error ?
endpoint.errorExpiryLength ?? 1000
: endpoint.dataExpiryLength ?? 60000;
(endpoint.errorExpiryLength ?? 1000)
: (endpoint.dataExpiryLength ?? 60000);
/* istanbul ignore next */
if (process.env.NODE_ENV === 'development' && expiryLength < 0) {
throw new Error('Negative expiry length are not allowed.');
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/manager/__tests__/pollingSubscription.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Endpoint } from '@data-client/endpoint';
import { Article, PollingArticleResource } from '__tests__/new';

import Controller from '../../controller/Controller';
import { createSubscription } from '../../controller/actions/createSubscription';
import Controller from '../../controller/Controller';
import { initialState } from '../../state/reducer/createReducer';
import ConnectionListener from '../ConnectionListener';
import DefaultConnectionListener from '../DefaultConnectionListener';
Expand Down
2 changes: 1 addition & 1 deletion packages/test/src/createControllerInterceptor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function createControllerInterceptor<T>(
const delayMs =
typeof fixture.delay === 'function' ?
fixture.delay(...(args as any))
: fixture.delay ?? 0;
: (fixture.delay ?? 0);

if ('fetchResponse' in fixture) {
const { fetchResponse } = fixture;
Expand Down

0 comments on commit b836533

Please sign in to comment.