Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make caching class return undefined if property does not exist #247

Merged
merged 2 commits into from
Sep 7, 2021

Conversation

DarthHater
Copy link
Member

I am unsure how this broke, but what this PR does is: return undefined if a property is set to '' in Config. It's likely we should rethink this class a bit and set those properties as optional, or something akin.

This pull request makes the following changes:

  • Updates src/Config/OssIndexServerConfig.ts to return undefined for properties if they are not set
  • Also updates src/Config/OssIndexServerConfig.ts to do a better check when setting properties

It relates to the following issue #s:

cc @bhamail / @DarthHater / @allenhsieh / @ken-duck

Copy link
Contributor

@bhamail bhamail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. Thanks @DarthHater !

@bhamail bhamail merged commit 8e3b3ad into main Sep 7, 2021
@bhamail bhamail deleted the FixCachingBug branch September 7, 2021 20:24
brent-spiner pushed a commit that referenced this pull request Sep 7, 2021
## [4.0.31](v4.0.30...v4.0.31) (2021-09-07)

### Bug Fixes

* Make caching class return undefined if property does not exist ([#247](#247)) ([8e3b3ad](8e3b3ad))
* use newer node version in CI release process, required to run semantic-release. ([589e0ce](589e0ce))
* use newly published @xmldom/xmldom package. fixes [#243](#243) ([9f8b646](9f8b646))
@brent-spiner
Copy link

🎉 This PR is included in version 4.0.31 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Large number of files created on disk when running scan
3 participants