bump standard linter

This commit is contained in:
Kevin Jahns
2021-10-14 16:18:50 +02:00
parent 085dda4cbd
commit e33c67fc72
6 changed files with 882 additions and 845 deletions

View File

@@ -316,9 +316,9 @@ export const mergeUpdatesV2 = (updates, YDecoder = UpdateDecoderV2, YEncoder = U
const clockDiff = dec1.curr.id.clock - dec2.curr.id.clock
if (clockDiff === 0) {
// @todo remove references to skip since the structDecoders must filter Skips.
return dec1.curr.constructor === dec2.curr.constructor ? 0 : (
dec1.curr.constructor === Skip ? 1 : -1 // we are filtering skips anyway.
)
return dec1.curr.constructor === dec2.curr.constructor
? 0
: dec1.curr.constructor === Skip ? 1 : -1 // we are filtering skips anyway.
} else {
return clockDiff
}