Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:cables-gl/cables_dev into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
pandrr committed Nov 18, 2024
2 parents 54e40d2 + f345af0 commit 161fdc5
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions shared/api/utils/shared_ops_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -1355,10 +1355,6 @@ export default class SharedOpsUtil extends SharedUtil
{
if (this.isPatchOp(innerName) && this.getNamespace(innerName) !== this.getNamespace(outerName)) return "(SubpatchOp) Patch ops cannot contain ops of other patches.";
}
else
{
this._log.error("unknown op type", outerName);
}

return false;
}
Expand Down Expand Up @@ -1409,16 +1405,16 @@ export default class SharedOpsUtil extends SharedUtil
return uuidv4.isUUID(id);
}

isCoreOp(opname)
isCoreOp(opName)
{
if (!opname) return false;
return !(this.isUserOp(opname) || this.isTeamOp(opname) || this.isExtensionOp(opname) || this.isPatchOp(opname));
if (!opName) return false;
return !(this.isUserOp(opName) || this.isTeamOp(opName) || this.isExtensionOp(opName) || this.isPatchOp(opName));
}

isUserOp(opname)
isUserOp(opName)
{
if (!opname) return false;
return opname.startsWith(this.PREFIX_USEROPS);
if (!opName) return false;
return opName.startsWith(this.PREFIX_USEROPS);
}

isPrivateOp(opname)
Expand Down

0 comments on commit 161fdc5

Please sign in to comment.