Skip to content

Commit

Permalink
rubocop run
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiobayona committed May 17, 2024
1 parent 21e7e96 commit 02ea160
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source 'https://rubygems.org'
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
Expand Down
4 changes: 2 additions & 2 deletions lib/easy_talk/builders/object_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def initialize(schema_definition)
private

def properties_from_schema_definition
@properties_cache ||= begin
@properties_from_schema_definition ||= begin
properties = schema.delete(:properties) || {}
properties.each_with_object({}) do |(property_name, options), context|
add_required_property(property_name, options)
Expand Down Expand Up @@ -71,7 +71,7 @@ def handle_option_type(options)
end

def subschemas_from_schema_definition
@subschemas_cache ||= begin
@subschemas_from_schema_definition ||= begin
subschemas = schema.delete(:subschemas) || []
subschemas.each do |subschema|
add_definitions(subschema)
Expand Down
2 changes: 2 additions & 0 deletions lib/easy_talk/schema_errors_mapper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module EasyTalk
class SchemaErrorsMapper
def initialize(errors)
Expand Down

0 comments on commit 02ea160

Please sign in to comment.