From d82223f2e6ea85c8fd59c0564a3a99ba69e099b6 Mon Sep 17 00:00:00 2001
From: Sergei Zharinov <zharinov@users.noreply.github.com>
Date: Sun, 6 Feb 2022 18:28:10 +0300
Subject: [PATCH] refactor(datasource/node): Enable strict null checks (#14041)

---
 lib/datasource/node/index.ts | 4 ++++
 tsconfig.strict.json         | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/datasource/node/index.ts b/lib/datasource/node/index.ts
index 62daa1bd89..163e5d0615 100644
--- a/lib/datasource/node/index.ts
+++ b/lib/datasource/node/index.ts
@@ -28,6 +28,10 @@ export class NodeDatasource extends Datasource {
   async getReleases({
     registryUrl,
   }: GetReleasesConfig): Promise<ReleaseResult | null> {
+    // istanbul ignore if
+    if (!registryUrl) {
+      return null;
+    }
     const result: ReleaseResult = {
       homepage: 'https://nodejs.org',
       sourceUrl: 'https://github.com/nodejs/node',
diff --git a/tsconfig.strict.json b/tsconfig.strict.json
index 8d6d68893c..b7bbf39761 100644
--- a/tsconfig.strict.json
+++ b/tsconfig.strict.json
@@ -111,7 +111,6 @@
     "lib/datasource/helm/index.ts",
     "lib/datasource/index.ts",
     "lib/datasource/jenkins-plugins/index.ts",
-    "lib/datasource/node/index.ts",
     "lib/datasource/npm/get.ts",
     "lib/datasource/npm/index.ts",
     "lib/datasource/npm/npmrc.ts",
-- 
GitLab