Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
fiskus committed Aug 2, 2023
1 parent bbf3026 commit 9f5d111
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions catalog/app/containers/Bucket/PackageTree/PackageTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ interface ListingContentsProps {
hashOrTag: string
name: string
path: string
entries: readonly (
| Pick<Model.GQLTypes.PackageFile, '__typename' | 'path' | 'size'>
| Pick<Model.GQLTypes.PackageDir, '__typename' | 'path' | 'size'>
)[]
entries: readonly Pick<
Model.GQLTypes.PackageFile | Model.GQLTypes.PackageDir,
'__typename' | 'path' | 'size'
>[]
}

function ListingContents({
Expand All @@ -122,8 +122,7 @@ function ListingContents({
return Listing.Entry.File({ key: c.path, size: c.size })
case 'PackageDir':
return Listing.Entry.Dir({ key: c.path, size: c.size })

Check warning on line 124 in catalog/app/containers/Bucket/PackageTree/PackageTree.tsx

View check run for this annotation

Codecov / codecov/patch/informational

catalog/app/containers/Bucket/PackageTree/PackageTree.tsx#L121-L124

Added lines #L121 - L124 were not covered by tests
default:
return assertNever(c)
// no-default
}
}),
{
Expand Down

0 comments on commit 9f5d111

Please sign in to comment.