From ab175472014acfc2c1c710abcc36a32bca4b7a77 Mon Sep 17 00:00:00 2001 From: Nikita Shilnikov Date: Wed, 1 Jan 2025 19:39:59 +0100 Subject: [PATCH] rubocop -A --- Gemfile | 2 +- lib/dry/initializer/dsl.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index cd38b7d..6cb71ab 100644 --- a/Gemfile +++ b/Gemfile @@ -13,8 +13,8 @@ else end group :benchmarks do - gem "activesupport" gem "active_attr" + gem "activesupport" gem "anima" gem "attr_extras" gem "benchmark-ips", "~> 2.5" diff --git a/lib/dry/initializer/dsl.rb b/lib/dry/initializer/dsl.rb index 592c802..6130eb0 100644 --- a/lib/dry/initializer/dsl.rb +++ b/lib/dry/initializer/dsl.rb @@ -26,7 +26,7 @@ def [](undefined: true, **) # @yield proc defining params and options def define(procedure = nil, &block) config = Config.new(null: null) - config.instance_exec(&(procedure || block)) + config.instance_exec(&procedure || block) config.mixin.include Mixin::Root config.mixin end