Skip to content

Commit 03482d6

Browse files
author
Larry Botha
committed
style(various files): prettier
1 parent 9420ce7 commit 03482d6

File tree

2 files changed

+92
-92
lines changed

2 files changed

+92
-92
lines changed

lib/util.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {dequal as isEqual} from 'dequal/lite';
22

33
function subscribeOnce(observable) {
4-
return new Promise((resolve) => {
4+
return new Promise(resolve => {
55
observable.subscribe(resolve)(); // immediately invoke to unsubscribe
66
});
77
}
88

99
function update(object, path, value) {
10-
object.update((o) => {
10+
object.update(o => {
1111
set(o, path, value);
1212
return o;
1313
});
@@ -54,7 +54,7 @@ function getErrorsFromSchema(initialValues, schema, errors = {}) {
5454
case schema[key].type === 'array': {
5555
const values =
5656
initialValues && initialValues[key] ? initialValues[key] : [];
57-
errors[key] = values.map((value) =>
57+
errors[key] = values.map(value =>
5858
getErrorsFromSchema(
5959
value,
6060
schema[key].innerType.fields,
@@ -77,7 +77,7 @@ const deepEqual = isEqual;
7777

7878
function assignDeep(object, value) {
7979
if (Array.isArray(object)) {
80-
return object.map((o) => assignDeep(o, value));
80+
return object.map(o => assignDeep(o, value));
8181
}
8282
const copy = {};
8383
for (const key in object) {

0 commit comments

Comments
 (0)