Skip to content
Prev Previous commit
Next Next commit
small refactor: use return on same line for consistency
  • Loading branch information
RobinMalfait committed Jul 8, 2024
commit 6caf3dd2d6eb46fbc8ae1e8cd410d15b6f1a907e
4 changes: 1 addition & 3 deletions packages/tailwindcss/src/candidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,7 @@ export function parseCandidate(input: string, designSystem: DesignSystem): Candi
// If the leftover value is an empty string, it means that the value is an
// invalid named value. This makes the candidate invalid and we can
// skip any further parsing.
if (value === '') {
return null
}
if (value === '') return null

candidate.value = {
kind: 'named',
Expand Down