Skip to content

Commit

Permalink
refactor: remove filter HACK (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi authored Jul 25, 2024
1 parent c96ecfe commit fcb19ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ export async function run(): Promise<void> {
)
: branchNames
.map(branchName => convertRef(branchName, { refType: 'branch' }))
// .filter(Boolean) // この時代のfilterの型定義って終わってたのか…
// HACK
.flatMap(x => (x ? x : []))
.filter(ref => ref !== null)

for (const ref of refs) {
await deleteRefActionsCaches(octokit, repo, ref, isDryRun)
Expand Down

0 comments on commit fcb19ab

Please sign in to comment.