Skip to content

Commit

Permalink
cleanup unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Feb 5, 2025
1 parent fc9fe5e commit fce457c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/tailwindcss/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ export class Theme {
markUsedVariable(themeKey: string) {
let key = unescape(this.#unprefixKey(themeKey))
let value = this.values.get(key)
if (!value) return // Unknown variable
if (value.options & ThemeOptions.USED) return // Variable already used

if (!value) return
value.options |= ThemeOptions.USED
}

Expand Down

0 comments on commit fce457c

Please sign in to comment.