Skip to content

Commit

Permalink
refactor: code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Riddhiagrawal001 committed Oct 9, 2024
1 parent 9b0998b commit 2db2aec
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/utils/Mappers/GroupACLMapper.res
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,8 @@ let hasAnyGroupAccess = (group1, group2) => {
}
}

let getAccessValue = (~groupAccess: groupAccessType, ~groupACL) => {
let isGroupFound = groupACL->Array.find(ele => {
ele == groupAccess
})

isGroupFound->Option.isSome ? Access : NoAccess
}
let getAccessValue = (~groupAccess: groupAccessType, ~groupACL) =>
groupACL->Array.find(ele => ele == groupAccess)->Option.isSome ? Access : NoAccess

// TODO: Refactor to not call function for every group
let getGroupAccessJson = groupACL => {
Expand Down

0 comments on commit 2db2aec

Please sign in to comment.