Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

make rubocop happier

Christophe Bliard81e819dce1f2
diff --git a/modules/storages/app/services/storages/project_storages/delete_service.rb b/modules/storages/app/services/storages/project_storages/delete_service.rb
index 0b1cabdda64..3642635e65c 100644
--- a/modules/storages/app/services/storages/project_storages/delete_service.rb
+++ b/modules/storages/app/services/storages/project_storages/delete_service.rb
@@ -38,7 +38,7 @@ module Storages::ProjectStorages
def persist(service_result)
# Perform the @object.destroy etc. in the super-class
service_result = super(service_result)
-
+
delete_associated_file_links
# Just return the result from the superclass.
diff --git a/spec/lib/api/v3/utilities/date_time_formatter_spec.rb b/spec/lib/api/v3/utilities/date_time_formatter_spec.rb
index c92d1b7ee58..ce2a18b7111 100644
--- a/spec/lib/api/v3/utilities/date_time_formatter_spec.rb
+++ b/spec/lib/api/v3/utilities/date_time_formatter_spec.rb
@@ -36,7 +36,7 @@ describe ::API::V3::Utilities::DateTimeFormatter do
shared_examples_for 'can format nil' do
it 'accepts nil if asked to' do
- expect(subject.send(method, nil, allow_nil: true)).to be(nil)
+ expect(subject.send(method, nil, allow_nil: true)).to be_nil
end
it 'returns usual result for non-nils' do
@@ -47,7 +47,7 @@ describe ::API::V3::Utilities::DateTimeFormatter do
shared_examples_for 'can parse nil' do
it 'accepts nil if asked to' do
- expect(subject.send(method, nil, 'prop', allow_nil: true)).to be(nil)
+ expect(subject.send(method, nil, 'prop', allow_nil: true)).to be_nil
end
it 'returns usual result for non-nils' do