Skip to content

empty label array#39

Open
mgraves10 wants to merge 1 commit into
techtalk:masterfrom
mgraves10:patch-2
Open

empty label array#39
mgraves10 wants to merge 1 commit into
techtalk:masterfrom
mgraves10:patch-2

Conversation

@mgraves10

@mgraves10 mgraves10 commented Apr 5, 2016

Copy link
Copy Markdown

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

Anastasius80 commented Oct 25, 2016

Copy link
Copy Markdown

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

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

@quexy

quexy commented Oct 25, 2016

Copy link
Copy Markdown
Contributor

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

@Anastasius80

Copy link
Copy Markdown

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