Skip to content

ref(environment): use string checking instead - #7721

Merged
bacongobbler merged 1 commit into
helm:masterfrom
bacongobbler:fix-7230
Mar 3, 2020
Merged

bacongobbler merged 1 commit into
helm:masterfrom
bacongobbler:fix-7230

Conversation

@bacongobbler

Copy link
Copy Markdown
Member

It is more idiomatic to compare the string against the empty string than to check the string's length.

Signed-off-by: Matthew Fisher [email protected]

It is more idiomatic to compare the string against the empty string than to check the string's length.

Signed-off-by: Matthew Fisher <[email protected]>
@helm-bot helm-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 2, 2020

@marckhouzam marckhouzam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

I've been flip flopping between the two approaches for my PRs and I appreciate this clear recommendation.

@bacongobbler
bacongobbler merged commit 1940f50 into helm:master Mar 3, 2020
@bacongobbler
bacongobbler deleted the fix-7230 branch March 3, 2020 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants