From 3d84fb1b403ee0d221d928ba6ede09fe9ed9065c Mon Sep 17 00:00:00 2001 From: Hafsteinn Date: Tue, 6 Oct 2020 12:52:07 +0200 Subject: [PATCH] #185 remove accidental indentation --- index.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index 0d8d622..ed0ec53 100644 --- a/index.js +++ b/index.js @@ -59,16 +59,15 @@ function mergeObject(target, source, options) { }) } getKeys(source).forEach(function(key) { - if (propertyIsUnsafe(target, key)) { - return - } - - if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) { - destination[key] = getMergeFunction(key, options, target[key], source[key])(target[key], source[key], options); - } else - destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); + if (propertyIsUnsafe(target, key)) { + return } - ); + + if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) { + destination[key] = getMergeFunction(key, options, target[key], source[key])(target[key], source[key], options); + } else + destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); + }); return destination }