summaryrefslogtreecommitdiff
path: root/app/models/project_services/asana_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project_services/asana_service.rb')
-rw-r--r--app/models/project_services/asana_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/asana_service.rb b/app/models/project_services/asana_service.rb
index 568f870c2db..cc5f1207653 100644
--- a/app/models/project_services/asana_service.rb
+++ b/app/models/project_services/asana_service.rb
@@ -65,7 +65,7 @@ http://app.asana.com/-/account_api'
# check the branch restriction is poplulated and branch is not included
branch = Gitlab::Git.ref_name(data[:ref])
branch_restriction = restrict_to_branch.to_s
- if branch_restriction.length > 0 && branch_restriction.index(branch).nil?
+ if branch_restriction.present? && branch_restriction.index(branch).nil?
return
end