diff --git a/lib/mixins/attachments.js b/lib/mixins/attachments.js index 7cf2fe3e..ef245d3d 100644 --- a/lib/mixins/attachments.js +++ b/lib/mixins/attachments.js @@ -105,14 +105,11 @@ export default { /** check two embedded file metadata objects for equality */ function isEqual(a, b) { - if ( - a.Subtype !== b.Subtype || - a.Params.CheckSum.toString() !== b.Params.CheckSum.toString() || - a.Params.Size !== b.Params.Size || - a.Params.CreationDate !== b.Params.CreationDate || - a.Params.ModDate !== b.Params.ModDate - ) { - return false; - } - return true; + return ( + a.Subtype === b.Subtype && + a.Params.CheckSum.toString() === b.Params.CheckSum.toString() && + a.Params.Size === b.Params.Size && + a.Params.CreationDate === b.Params.CreationDate && + a.Params.ModDate === b.Params.ModDate + ); }