diff --git a/native/redux/update-roles-and-permissions.js b/native/redux/update-roles-and-permissions.js --- a/native/redux/update-roles-and-permissions.js +++ b/native/redux/update-roles-and-permissions.js @@ -53,7 +53,9 @@ ): ThreadStoreThreadInfos { const updatedThreadStoreInfos = { ...threadStoreInfos }; - const recursivelyUpdateRoles = (node: $ReadOnly) => { + const recursivelyUpdateRoles = ( + node: $ReadOnly, + ): void => { const threadInfo: RawThreadInfo = updatedThreadStoreInfos[node.threadID]; const computedRolePermissionBlobs = getRolePermissionBlobs(threadInfo.type); @@ -69,13 +71,13 @@ roles, }; - return node.children?.map(recursivelyUpdateRoles); + node.children?.map(recursivelyUpdateRoles); }; const recursivelyUpdatePermissions = ( node: $ReadOnly, memberToThreadPermissionsFromParent: ?MemberToThreadPermissionsFromParent, - ) => { + ): void => { const threadInfo: RawThreadInfo = updatedThreadStoreInfos[node.threadID]; const updatedMembers = []; @@ -112,7 +114,7 @@ members: updatedMembers, }; - return node.children?.map(child => + node.children?.map(child => recursivelyUpdatePermissions(child, memberToThreadPermissionsForChildren), ); }; @@ -120,7 +122,7 @@ const recursivelyUpdateCurrentMemberPermissions = ( node: $ReadOnly, permissionsFromParent: ?ThreadPermissionsBlob, - ) => { + ): void => { const threadInfo: RawThreadInfo = updatedThreadStoreInfos[node.threadID]; const { currentUser, roles } = threadInfo; const { role } = currentUser; @@ -144,7 +146,7 @@ }, }; - return node.children?.map(child => + node.children?.map(child => recursivelyUpdateCurrentMemberPermissions( child, makePermissionsForChildrenBlob(computedPermissions),