Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 95569f1

Browse files
committed
Fixed linting errors
1 parent 3d68e6f commit 95569f1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/actions/model-actions.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,8 @@ export function createModelActions(s = defaultStrategies) {
9898

9999
if (typeof value === 'undefined') {
100100
return change(model, !currentValue);
101-
} else {
102-
return change(model, value);
103101
}
102+
return change(model, value);
104103
};
105104

106105
const check = (model, value) => (dispatch, getState) => {

test/control-component-spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Object.keys(testContexts).forEach((testKey) => {
352352
});
353353
});
354354

355-
describe('with <Control.checkbox /> (single toggle, dynamic form data, checked by default)', () => {
355+
describe('with <Control.checkbox /> (single toggle, dynamic form, defaultChecked)', () => {
356356
const initialState = getInitialState({ single: true });
357357
const store = testCreateStore({
358358
testForm: formReducer('test'),
@@ -406,7 +406,7 @@ Object.keys(testContexts).forEach((testKey) => {
406406
});
407407
});
408408

409-
describe('with <Control.checkbox /> (single toggle, dynamic form data, unchecked by default)', () => {
409+
describe('with <Control.checkbox /> (single toggle, dynamic form, !defaultChecked)', () => {
410410
const initialState = getInitialState({ single: true });
411411
const store = testCreateStore({
412412
testForm: formReducer('test'),

0 commit comments

Comments
 (0)