We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6d690c commit 6abde41Copy full SHA for 6abde41
lib/dry/initializer/plugins/type_constraint.rb
@@ -11,8 +11,10 @@ def call
11
ivar = :"@#{rename}"
12
lambda do |*|
13
value = instance_variable_get(ivar)
14
- return if value == Dry::Initializer::UNDEFINED
15
- instance_variable_set ivar, type.call(value)
+
+ if value != Dry::Initializer::UNDEFINED
16
+ instance_variable_set ivar, type.call(value)
17
+ end
18
end
19
20
0 commit comments