Skip to content

Commit

Permalink
chore: unwrapped redundant loop
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanjassal committed Jan 7, 2025
1 parent 1a749a3 commit 3446fd0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/acl/ACL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,7 @@ class ACL {
if (permId in permIds) {
nodePerm = permIds[permId];
// Get the first existing perm object
let perm: Permission;
for (const nodeId_ in nodePerm) {
perm = nodePerm[nodeId_];
break;
}
const perm = Object.values(nodePerm)[0]
// All perm objects are shared
nodePerm[nodeId] = perm!;
} else {
Expand Down

0 comments on commit 3446fd0

Please sign in to comment.