Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <[email protected]>
  • Loading branch information
oxdev03 and viceice committed Aug 26, 2024
1 parent 82ec24f commit 8101e10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/modules/datasource/deb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ export class DebDatasource extends Datasource {
* @returns The release result if the package is found, otherwise null.
*/
@cache({
namespace: `datasource-${DebDatasource.id}-releases`,
key: (registryUrl: string, packageName: string) =>
`${registryUrl}-${packageName}`,
namespace: `datasource-${DebDatasource.id}`,
key: ({registryUrl, packageName}: GetReleasesConfig) =>
`${registryUrl}:${packageName}`,
})
async getReleases({
registryUrl,
Expand Down
1 change: 0 additions & 1 deletion lib/util/cache/package/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export type PackageCacheNamespace =
| 'datasource-crate-metadata'
| 'datasource-crate'
| 'datasource-deb'
| 'datasource-deb-releases'
| 'datasource-deno-details'
| 'datasource-deno-versions'
| 'datasource-deno'
Expand Down

0 comments on commit 8101e10

Please sign in to comment.