Skip to content

Commit

Permalink
fix: avoid variable shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
dotellie committed May 18, 2020
1 parent 3c14739 commit c84c73c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/createFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export function createFileWithGeneratedTypes({ configFilename, outputFilename }:
const opacities = Object.keys(allOpacities).map(opacity => `${prefix}opacity-${opacity}`);

const getOpacity = (themePropertyName: string, outputNamePrefix: string) => {
const opacities = generateOpacities(allOpacities, THEME_CONFIG, themePropertyName);
return Object.keys(opacities).map(opacity => `${prefix}${outputNamePrefix}-opacity-${opacity}`);
const generatedOpacities = generateOpacities(allOpacities, THEME_CONFIG, themePropertyName);
return Object.keys(generatedOpacities).map(opacity => `${prefix}${outputNamePrefix}-opacity-${opacity}`);
};
const textOpacities = getOpacity('textOpacity', 'text');
const backgroundOpacities = getOpacity('backgroundOpacity', 'bg');
Expand Down

0 comments on commit c84c73c

Please sign in to comment.