mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 06:33:08 +02:00
Remove unnecessary brackets
This commit is contained in:
parent
a7bf324f3c
commit
8e6e70ef8a
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import createObject from '../create';
|
||||||
import Resolver from '../resolver';
|
import Resolver from '../resolver';
|
||||||
|
|
||||||
export default (actor, value) => {
|
export default (actor, value) => {
|
||||||
return (new Resolver()).resolve(value).then(resolved => Promise.all(resolved.map(async asyncResult => {
|
return new Resolver().resolve(value).then(resolved => Promise.all(resolved.map(async asyncResult => {
|
||||||
const { resolver, object } = await asyncResult;
|
const { resolver, object } = await asyncResult;
|
||||||
const created = await (await createObject(resolver, actor, [object]))[0];
|
const created = await (await createObject(resolver, actor, [object]))[0];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue