Skip to content

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