Skip to content

Commit

Permalink
Rename old variable
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Provost <provomat@amazon.com>
  • Loading branch information
BSFishy committed Jun 23, 2023
1 parent cad3fb5 commit 8167606
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ export const getSelectorRule = (rules: Record<string, { approved?: string[] }>,
return undefined;
};

export const getPropertyRule = (arr: Record<string, { approved?: string[] }>, decl: any) => {
for (const key of Object.keys(arr)) {
export const getPropertyRule = (rules: Record<string, { approved?: string[] }>, decl: any) => {
for (const key of Object.keys(rules)) {
if (matches(key, decl.prop)) {
return arr[key];
return rules[key];
}
}

Expand Down

0 comments on commit 8167606

Please sign in to comment.