From e2ba623f99c18e9a6e8a82e85e09798136421e79 Mon Sep 17 00:00:00 2001 From: Lukas Taegert-Atkinson Date: Mon, 25 Mar 2019 07:24:00 +0100 Subject: [PATCH] Fix formatting --- src/ast-utils.js | 2 +- src/utils.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ast-utils.js b/src/ast-utils.js index 4eaeb7f..9b723f5 100644 --- a/src/ast-utils.js +++ b/src/ast-utils.js @@ -63,7 +63,7 @@ const extractors = { }, MemberExpression(names, node) { - extractors[node.property.type](names, node.property) + extractors[node.property.type](names, node.property); } }; diff --git a/src/utils.js b/src/utils.js index 7c82ff5..fc86cd0 100644 --- a/src/utils.js +++ b/src/utils.js @@ -16,8 +16,8 @@ export function getName(id) { export function first(candidates) { return function(...args) { return candidates.reduce((promise, candidate) => { - return promise.then( - result => (result != null ? result : Promise.resolve(candidate.call(this, ...args))) + return promise.then(result => + result != null ? result : Promise.resolve(candidate.call(this, ...args)) ); }, Promise.resolve()); };