Fix rubocop offenses in wikis module

Those sneaked in most likely due to a Rubocop update.
Fixing them all at once, bringing the wikis module back to
formall no offenses.
This commit is contained in:
Jan Sandbrink
2026-06-12 14:54:40 +02:00
parent 759bb11f35
commit 37fca6901e
4 changed files with 5 additions and 5 deletions
@@ -85,7 +85,7 @@ module Wikis
end
def find_provider
@provider = ::Wikis::Provider.visible.find(params[:wiki_provider_id])
@provider = ::Wikis::Provider.visible.find(params.expect(:wiki_provider_id))
end
def create_and_store_report
@@ -99,7 +99,7 @@ module Wikis
end
def find_wiki_provider
@wiki_provider = Wikis::Provider.visible.find(params[:wiki_provider_id])
@wiki_provider = Wikis::Provider.visible.find(params.expect(:wiki_provider_id))
end
def respond_for_success
@@ -150,13 +150,13 @@ module Wikis
end
def find_wiki_provider
@wiki_provider = editable_wiki_providers.find(params[:id])
@wiki_provider = editable_wiki_providers.find(params.expect(:id))
end
def continue_from_wizard_params
return if params[:continue_wizard].blank?
editable_wiki_providers.find(params[:continue_wizard])
editable_wiki_providers.find(params.expect(:continue_wizard))
end
def wiki_provider_params
@@ -49,6 +49,6 @@ class WorkPackageWikisTabController < ApplicationController
private
def set_work_package
@work_package = @project.work_packages.visible.find(params[:work_package_id])
@work_package = @project.work_packages.visible.find(params.expect(:work_package_id))
end
end