Skip to content

Commit

Permalink
Fix JS style
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjchen committed Sep 17, 2021
1 parent 611d3ed commit 2eeacdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ function getPolicyList() {
/**
* Is the user an admin of a free policy (aka workspace)?
*
* @param {Array} policies
* @returns {Boolean}
*/
function isAdminOfFreePolicy(policies) {
function isAdminOfFreePolicy(policies) {
return _.some(policies, policy => policy
&& policy.type === CONST.POLICY.TYPE.FREE
&& policy.role === CONST.POLICY.ROLE.ADMIN);
Expand Down

0 comments on commit 2eeacdb

Please sign in to comment.