From fca865b07f62845e722b0919c5ed5e0cc140a92c Mon Sep 17 00:00:00 2001 From: Sergei Zharinov <zharinov@users.noreply.github.com> Date: Sun, 6 Feb 2022 19:50:31 +0300 Subject: [PATCH] refactor(datasource/helm): Enable strict null checks (#14040) --- lib/datasource/helm/index.ts | 5 +++++ tsconfig.strict.json | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/datasource/helm/index.ts b/lib/datasource/helm/index.ts index 9eb5bf40f8..394206d985 100644 --- a/lib/datasource/helm/index.ts +++ b/lib/datasource/helm/index.ts @@ -89,6 +89,11 @@ export class HelmDatasource extends Datasource { lookupName, registryUrl: helmRepository, }: GetReleasesConfig): Promise<ReleaseResult | null> { + // istanbul ignore if + if (!helmRepository) { + return null; + } + const repositoryData = await this.getRepositoryData(helmRepository); if (!repositoryData) { logger.debug(`Couldn't get index.yaml file from ${helmRepository}`); diff --git a/tsconfig.strict.json b/tsconfig.strict.json index fee429149b..ee3604b66b 100644 --- a/tsconfig.strict.json +++ b/tsconfig.strict.json @@ -107,8 +107,6 @@ "lib/datasource/go/types.ts", "lib/datasource/golang-version/index.ts", "lib/datasource/gradle-version/index.ts", - "lib/datasource/helm/common.ts", - "lib/datasource/helm/index.ts", "lib/datasource/index.ts", "lib/datasource/jenkins-plugins/index.ts", "lib/datasource/npm/get.ts", -- GitLab