Skip to content
Snippets Groups Projects
Unverified Commit d82223f2 authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

refactor(datasource/node): Enable strict null checks (#14041)

parent c6fbed48
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment