Better variable name

This commit is contained in:
syuilo 2018-04-01 21:19:39 +09:00
parent e285f6feda
commit 623f5b0072

View file

@ -3,8 +3,8 @@ import createObject from '../create';
import Resolver from '../resolver';
export default (actor, value) => {
return new Resolver().resolve(value).then(resolved => Promise.all(resolved.map(async asyncResult => {
const { resolver, object } = await asyncResult;
return new Resolver().resolve(value).then(resolved => Promise.all(resolved.map(async promisedResult => {
const { resolver, object } = await promisedResult;
const created = await (await createObject(resolver, actor, [object]))[0];
if (created !== null) {