techtalk / JiraRestClient

A simple client for Atlassian JIRA service REST API
Other
65 stars 80 forks source link

empty label array #39

Open mgraves10 opened 8 years ago

mgraves10 commented 8 years ago

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.

Anastasius80 commented 7 years ago

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

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

quexy commented 7 years ago

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

Anastasius80 commented 7 years ago

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