Skip to content

Commit

Permalink
op hierarchy debug
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Nov 18, 2024
1 parent 7f77528 commit f345af0
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 f345af0

Please sign in to comment.