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 d52214cdd69..e6e16058d41 100644
--- a/app/models/project_services/asana_service.rb
+++ b/app/models/project_services/asana_service.rb
@@ -82,7 +82,7 @@ automatically inspected. Leave blank to include all branches.'
branch_restriction = restrict_to_branch.to_s
# check the branch restriction is poplulated and branch is not included
- if branch_restriction.length > 0 && branch_restriction.index(branch) == nil
+ if branch_restriction.length > 0 && branch_restriction.index(branch).nil?
return
end