Skip to content

Commit

Permalink
Remove unnecessary boolean cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Stone committed Nov 6, 2020
1 parent 971f5e6 commit c5688b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function propertyIsUnsafe(target, key) {

// Retrieves either a new object or the appropriate target object to mutate.
function getDestinationObject(target, options) {
if (options && !!options.mergeWithTarget) {
if (options && options.mergeWithTarget) {
return Array.isArray(target) ? firstArrayEntry(target) : target
}

Expand Down

0 comments on commit c5688b7

Please sign in to comment.