Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-02-15 20:55:41 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2017-02-15 20:55:41 +0300
commit79ef221e4e4998809a3fa1ac888c39868baa589e (patch)
treef2e7532f56dd1889a6e881b32be414ebc1ab6954 /spec/views
parent798e03f0c800250c433276e84ca528ea88ad9a16 (diff)
Fix Rubocop offense
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/projects/_home_panel.html.haml_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/views/projects/_home_panel.html.haml_spec.rb b/spec/views/projects/_home_panel.html.haml_spec.rb
index 5af57cdf3b7..f5381a48207 100644
--- a/spec/views/projects/_home_panel.html.haml_spec.rb
+++ b/spec/views/projects/_home_panel.html.haml_spec.rb
@@ -4,7 +4,7 @@ describe 'projects/_home_panel', :view do
let(:project) { create(:empty_project, :public) }
let(:notification_settings) do
- user.notification_settings_for(project) if user
+ user&.notification_settings_for(project)
end
before do