Skip to content

Commit 0be5515

Browse files
author
Nicholas Palaniuk
committed
Fix rubocop offenses
1 parent 49f1658 commit 0be5515

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/omdb/api/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def perform
3333
year: 'y',
3434
return: 'r',
3535
version: 'v'
36-
}
36+
}.freeze
3737

3838
def _set_params(params)
3939
{}.tap do |p|

lib/omdb/api/types/movies.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
module Omdb
34
module Api
45
module Types

lib/omdb/api/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _response_handler(klass)
2525
def _handle_response(resp, klass)
2626
resp.deep_transform_keys! { |k| k.underscore.to_sym }
2727

28-
resp.fetch(:response) == 'True' ? klass.new(resp) : Omdb::Api::Types::Error.new(resp)
28+
resp.fetch(:response) == 'True' ? klass.new(resp) : Omdb::Api::Types::Error.new(resp)
2929
end
3030
end
3131
end

0 commit comments

Comments
 (0)