summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-02-15 18:00:39 +0000
committerAlfredo Sumaran <alfredo@gitlab.com>2017-02-15 18:00:39 +0000
commit5a13470a7935c2a31acdb4e85193721eb453a8a9 (patch)
treeb2cd1e8f813cdbc60ffdffe946baeb0ff422d776
parent6df388ea80243c259a4005444166a0f9f551deb7 (diff)
parent79ef221e4e4998809a3fa1ac888c39868baa589e (diff)
downloadgitlab-ce-5a13470a7935c2a31acdb4e85193721eb453a8a9.tar.gz
Merge branch 'fix-rubocop-master' into 'master'
Fix Rubocop offense See merge request !9274
-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