Skip to content

Commit

Permalink
refactor(datasource/node): Enable strict null checks (#14041)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Feb 6, 2022
1 parent c6fbed4 commit d82223f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/datasource/node/index.ts
Expand Up @@ -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',
Expand Down
1 change: 0 additions & 1 deletion tsconfig.strict.json
Expand Up @@ -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",
Expand Down

0 comments on commit d82223f

Please sign in to comment.