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

empty label array #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

empty label array #39

wants to merge 1 commit into from

Conversation

mgraves10
Copy link

@mgraves10 mgraves10 commented Apr 5, 2016

It seems in some instances jira will throw an error if you attempt to create an issue with a labels node that is an empty array. Check for it first.

It seems in some instances jira will throw and error if you attempt to create an issue with a labels node that is an empty array. Check for it first.
@Anastasius80
Copy link

Anastasius80 commented Oct 25, 2016

It is better you use .Any() instead of .Count > 0

It should be "faster", but thanks for your hotfix.

@quexy
Copy link
Contributor

quexy commented Oct 25, 2016

False. Count is a property read which is always faster than an enumerator call.

@Anastasius80
Copy link

Ok you are right .. i thought it isn't a property .. it is a Count() call .. a property read is faster .. thanks for the clarification, and sorry for my mistake

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

Successfully merging this pull request may close these issues.

3 participants