Skip to content

Commit

Permalink
prettier-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Nov 21, 2023
1 parent 96ef28c commit dbb111e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 4 additions & 6 deletions lib/modules/datasource/docker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,8 @@ export class DockerDatasource extends Datasource {
ecrRegex.test(registryHost) || ecrPublicRegex.test(registryHost)
? 1000
: 10000;
let url:
| string
| null = `${registryHost}/${dockerRepository}/tags/list?n=${limit}`;
let url: string | null =
`${registryHost}/${dockerRepository}/tags/list?n=${limit}`;
url = ensurePathPrefix(url, '/v2');
const headers = await getAuthHeaders(
this.http,
Expand Down Expand Up @@ -916,9 +915,8 @@ export class DockerDatasource extends Datasource {

async getDockerHubTags(dockerRepository: string): Promise<Release[] | null> {
const result: Release[] = [];
let url:
| null
| string = `https://hub.docker.com/v2/repositories/${dockerRepository}/tags?page_size=1000`;
let url: null | string =
`https://hub.docker.com/v2/repositories/${dockerRepository}/tags?page_size=1000`;
while (url) {
const { val, err } = await this.http
.getJsonSafe(url, DockerHubTagsPage)
Expand Down
5 changes: 2 additions & 3 deletions lib/util/git/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ export function getGitAuthenticatedEnvironmentVariables(
...environmentVariables,
};
for (const rule of authenticationRules) {
newEnvironmentVariables[
`GIT_CONFIG_KEY_${gitConfigCount}`
] = `url.${rule.url}.insteadOf`;
newEnvironmentVariables[`GIT_CONFIG_KEY_${gitConfigCount}`] =
`url.${rule.url}.insteadOf`;
newEnvironmentVariables[`GIT_CONFIG_VALUE_${gitConfigCount}`] =
rule.insteadOf;
gitConfigCount++;
Expand Down

0 comments on commit dbb111e

Please sign in to comment.