Skip to content

Commit

Permalink
refactor: define filteredMatches as const
Browse files Browse the repository at this point in the history
  • Loading branch information
brawaru committed Oct 13, 2023
1 parent 0a684c7 commit 371bdad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,11 @@ function getExcludedUnits({ excludedUnits }: FormatOptions) {
}

function filterMatchers(options: FormatOptions) {
let filteredMatchers: IntervalMatcher[]

const excludedUnits = getExcludedUnits(options)

if (excludedUnits.length === 0) return matchers

filteredMatchers = [...matchers]
const filteredMatchers = [...matchers]

for (const unit of excludedUnits) {
const normalizedUnit = normalizeUnit(unit)
Expand Down

0 comments on commit 371bdad

Please sign in to comment.