Skip to content

Commit 4ff5bdc

Browse files
committed
apply rubocop
1 parent ddd27f5 commit 4ff5bdc

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

app/controllers/items_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def item_params
269269
:use_restriction_id, :memo,
270270
{item_has_use_restriction_attributes: :use_restriction_id}, # EnjuCirculation
271271
{item_custom_values_attributes: [
272-
:id, :item_custom_property_id, :item_id, :value,:_destroy
272+
:id, :item_custom_property_id, :item_id, :value, :_destroy
273273
]}
274274
)
275275
end

app/controllers/manifestations_controller.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def index
130130
:edition,
131131
:serial,
132132
:statement_of_responsibility
133-
] if params[:format] == 'html' or params[:format].nil?
133+
] if params[:format] == 'html' || params[:format].nil?
134134
all_result = search.execute
135135
@count[:query_result] = all_result.total
136136
@reservable_facet = all_result.facet(:reservable).rows if defined?(EnjuCirculation)
@@ -141,7 +141,7 @@ def index
141141
@max_number_of_results = max_number_of_results
142142
end
143143

144-
if params[:format] == 'html' or params[:format].nil?
144+
if params[:format] == 'html' || params[:format].nil?
145145
@search_query = Digest::SHA1.hexdigest(Marshal.dump(search.query.to_params).force_encoding('UTF-8'))
146146
if flash[:search_query] == @search_query
147147
flash.keep(:search_query)
@@ -217,7 +217,7 @@ def index
217217
search_result.results, total_count: max_count
218218
).page(page).per(per_page)
219219

220-
if params[:format].blank? or params[:format] == 'html'
220+
if params[:format].blank? || params[:format] == 'html'
221221
@carrier_type_facet = search_result.facet(:carrier_type).rows
222222
@language_facet = search_result.facet(:language).rows
223223
@library_facet = search_result.facet(:library).rows
@@ -401,7 +401,7 @@ def update
401401
respond_to do |format|
402402
if @manifestation.save
403403
set_creators
404-
404+
405405
format.html { redirect_to @manifestation, notice: t('controller.successfully_updated', model: t('activerecord.models.manifestation')) }
406406
format.json { head :no_content }
407407
else

app/controllers/messages_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def new
5656
@message.recipient = params[:recipient]
5757
elsif parent
5858
@message.recipient = parent.sender.username
59-
end
59+
end
6060
@message.receiver = User.find_by(username: @message.recipient) if @message.recipient
6161
end
6262

app/controllers/oai_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class OaiController < ApplicationController
33

44
def index
55
provider = OaiProvider.new
6-
response = provider.process_request(oai_params.to_h)
6+
response = provider.process_request(oai_params.to_h)
77
render :body => response, :content_type => 'text/xml'
88
end
99

app/controllers/reserves_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ def create
170170
end
171171
elsif @reserve.user != current_user
172172
if @user != current_user
173-
access_denied
174-
return
175-
end
173+
access_denied
174+
return
175+
end
176176
end
177177

178178
respond_to do |format|

0 commit comments

Comments
 (0)