Skip to content

Commit

Permalink
make base url static
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannaegele committed Sep 3, 2024
1 parent 480817c commit 06ab7c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/datasource/hex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Signed } from './signed';
export class HexDatasource extends Datasource {
static readonly id = 'hex';

private readonly hexAPIBaseUrl = 'https://hex.pm/api';
private static readonly hexApiBaseUrl = 'https://hex.pm/api';
private hexRepoName = 'hexpm';

constructor() {
Expand Down Expand Up @@ -103,7 +103,7 @@ export class HexDatasource extends Datasource {
);

if (this.hexRepoName === 'hexpm' && releaseResult.releases.length > 0) {
const metadataUrl = joinUrlParts(this.hexAPIBaseUrl, urlPath);
const metadataUrl = joinUrlParts(HexDatasource.hexApiBaseUrl, urlPath);

logger.trace(`Package metadata url: ${metadataUrl}`);

Expand Down

0 comments on commit 06ab7c4

Please sign in to comment.