Skip to content

Commit

Permalink
fix(datasource/docker): undefined type error (#19322)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Dec 9, 2022
1 parent 6767681 commit e8eb585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/datasource/docker/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export const gitRefLabel = 'org.opencontainers.image.revision';

const JFROG_ARTIFACTORY_RES_HEADER = 'x-jfrog-version';

export function isArtifactoryServer(res: HttpResponse): boolean {
return is.string(res.headers[JFROG_ARTIFACTORY_RES_HEADER]);
export function isArtifactoryServer(res: HttpResponse | undefined): boolean {
return is.string(res?.headers[JFROG_ARTIFACTORY_RES_HEADER]);
}

0 comments on commit e8eb585

Please sign in to comment.