Skip to content

Conversation

izeye
Copy link
Contributor

@izeye izeye commented Jul 30, 2018

This PR polishes JsonContentHandler.isEmptyCollection() by removing a removable flow.

@wilkinsona
Copy link
Member

wilkinsona commented Jul 31, 2018

Thanks, @izeye. This was intentional when I wrote it as I thought it made the intent clearer. Your proposal's made me doubt myself now though. I'm not sure the current code is any clearer and it's more verbose.

@izeye
Copy link
Contributor Author

izeye commented Jul 31, 2018

I'm not sure the current code is any clearer and it's more verbose.

@wilkinsona When I saw the code, I felt the same thing but on the other hand also felt like a duplicate of the following flow. I don't have a strong opinion on this and am okay with either way.

wilkinsona added a commit that referenced this pull request Aug 1, 2018
* gh-535:
  Polish JsonContentHandler.isEmptyCollection()
@wilkinsona wilkinsona closed this in 7f86552 Aug 1, 2018
@wilkinsona wilkinsona added this to the 1.2.6.RELEASE milestone Aug 1, 2018
@wilkinsona wilkinsona added the type: task Non user-facing work label Aug 1, 2018
@wilkinsona
Copy link
Member

Thanks again, @izeye. The proposed change is now in 1.2.x and master.

@izeye izeye deleted the polish-is-empty-collection branch August 1, 2018 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task Non user-facing work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants