Skip to content
This repository was archived by the owner on Jun 2, 2022. It is now read-only.

feat: throw exception if projectId is empty string#63

Merged
dkontorovskyy merged 1 commit into
masterfrom
feat/greatest-feature-of-all-time
Mar 4, 2021
Merged

feat: throw exception if projectId is empty string#63
dkontorovskyy merged 1 commit into
masterfrom
feat/greatest-feature-of-all-time

Conversation

@dkontorovskyy
Copy link
Copy Markdown
Contributor

What this does

Throw exception if projectId is an empty string

@dkontorovskyy dkontorovskyy requested a review from FauxFaux March 4, 2021 16:28
@dkontorovskyy dkontorovskyy self-assigned this Mar 4, 2021
@dkontorovskyy dkontorovskyy requested a review from a team as a code owner March 4, 2021 16:28
@FauxFaux
Copy link
Copy Markdown
Contributor

FauxFaux commented Mar 4, 2021

How about lifting the UUID parsing up here to the configuration?

@dkontorovskyy
Copy link
Copy Markdown
Contributor Author

@FauxFaux this will require changing config.projectId => config.projectId.toString() in lots of places, cos this will require convertion to string in different locations. Not fancy doing this in almost unsupported repo

boolean skipMetaPosts,
boolean addShutdownHook) {
if (null == projectId) {
if (null == projectId || projectId.equals("")) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should you trim the projectId first? 😄

@dkontorovskyy dkontorovskyy force-pushed the feat/greatest-feature-of-all-time branch from da5481a to 5cf291a Compare March 4, 2021 16:37
@dkontorovskyy dkontorovskyy merged commit 8c18b80 into master Mar 4, 2021
@dkontorovskyy dkontorovskyy deleted the feat/greatest-feature-of-all-time branch March 4, 2021 16:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants