Skip to content

Commit 6ceefdd

Browse files
committed
reverted formatting
1 parent 9559df4 commit 6ceefdd

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/createLogic.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ export default function createLogic(logicOptions = {}) {
156156
}
157157

158158
const { name, type, cancelType,
159-
warnTimeout = defaultOptions.warnTimeout,
160-
latest = defaultOptions.latest,
161-
debounce = defaultOptions.debounce,
162-
throttle = defaultOptions.throttle,
163-
validate, transform, process = emptyProcess,
164-
processOptions = {} } = logicOptions;
159+
warnTimeout = defaultOptions.warnTimeout,
160+
latest = defaultOptions.latest,
161+
debounce = defaultOptions.debounce,
162+
throttle = defaultOptions.throttle,
163+
validate, transform, process = emptyProcess,
164+
processOptions = {} } = logicOptions;
165165

166166
if (!type) {
167167
throw new Error('type is required, use \'*\' to match all actions');
@@ -185,12 +185,12 @@ export default function createLogic(logicOptions = {}) {
185185
}
186186

187187
const validateDefaulted = (!validate && !transform) ?
188-
identityValidation :
189-
validate;
188+
identityValidation :
189+
validate;
190190

191191
if (NODE_ENV !== 'production' &&
192-
typeof processOptions.dispatchMultiple !== 'undefined' &&
193-
warnTimeout !== 0) {
192+
typeof processOptions.dispatchMultiple !== 'undefined' &&
193+
warnTimeout !== 0) {
194194
// eslint-disable-next-line no-console
195195
console.error(`warning: in logic for type(s): ${type} - dispatchMultiple is always true in next version. For non-ending logic, set warnTimeout to 0`);
196196
}
@@ -204,8 +204,8 @@ export default function createLogic(logicOptions = {}) {
204204
break;
205205
case 2: // process(deps, dispatch) - single dispatch (deprecated)
206206
if (NODE_ENV !== 'production' &&
207-
!processOptions.dispatchMultiple
208-
&& warnTimeout !== 0) {
207+
!processOptions.dispatchMultiple
208+
&& warnTimeout !== 0) {
209209
// eslint-disable-next-line no-console
210210
console.error(`warning: in logic for type(s): ${type} - single-dispatch mode is deprecated, call done when finished dispatching. For non-ending logic, set warnTimeout: 0`);
211211
}

test/createLogic.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ describe('createLogic', () => {
400400

401401
describe('name given fn', () => {
402402
it('converts name to fn.toString()', () => {
403-
const fn = () => { };
403+
const fn = () => {};
404404
fn.toString = () => 'myFn';
405405
const logic = createLogic({
406406
name: fn,
@@ -412,7 +412,7 @@ describe('createLogic', () => {
412412

413413
describe('type given fn', () => {
414414
it('converts type to fn.toString()', () => {
415-
const fn = () => { };
415+
const fn = () => {};
416416
fn.toString = () => 'myType';
417417
const logic = createLogic({
418418
type: fn
@@ -423,9 +423,9 @@ describe('createLogic', () => {
423423

424424
describe('type given array of fns', () => {
425425
it('converts type to arr of fn.toString()', () => {
426-
const fn = () => { };
426+
const fn = () => {};
427427
fn.toString = () => 'myType';
428-
const fn2 = () => { };
428+
const fn2 = () => {};
429429
fn2.toString = () => 'myType2';
430430
const logic = createLogic({
431431
type: [fn, fn2]

0 commit comments

Comments
 (0)