Skip to content

Commit

Permalink
clean up (remove logs)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim de Beer committed Jan 15, 2017
1 parent ec029de commit d903719
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/server/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ const serialize = (id, client, t, subs, struct, val, level) => {

if (stamp && (val === null || !(cached = isCached(client, struct, stamp))) || subs.val === true) {
const src = bs.src(stamp)

if (src !== client.key && bs.src(t.tStamp) !== client.key || (isType = struct.key === 'type')) {
if (
src !== client.key && bs.src(t.tStamp) !== client.key ||
(isType = struct.key === 'type')
) {
if (
client.resolve &&
client.resolve[src] &&
Expand All @@ -102,7 +104,7 @@ const serialize = (id, client, t, subs, struct, val, level) => {
}
}

if (isType) {
if (isType) { // means its blocked otherwise (could be a set form own client)
typeSerialize(id, client, t, subs, struct, val, level)
} else if (!cached && (struct.val !== void 0 || val === null)) {
const path = struct.path()
Expand All @@ -123,7 +125,9 @@ const serialize = (id, client, t, subs, struct, val, level) => {
setStamp(s, stamp, src, struct, id, client, level, val)
s.val = null
} else {
if (struct.key === 'type') typeSerialize(id, client, t, subs, struct, val, level)
if (struct.key === 'type') {
typeSerialize(id, client, t, subs, struct, val, level)
}

setStamp(s, stamp, src, struct, id, client, level)
if (struct.val && struct.val.inherits) {
Expand Down

0 comments on commit d903719

Please sign in to comment.