Skip to content

Commit ef79b1d

Browse files
jonathanhefnermullermp
authored andcommitted
Refactor PluginOption#doc_default (#2140)
1 parent ccb68ad commit ef79b1d

File tree

1 file changed

+2
-2
lines changed
  • gems/aws-sdk-core/lib/seahorse/client

1 file changed

+2
-2
lines changed

gems/aws-sdk-core/lib/seahorse/client/plugin.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ def initialize(name, options = {})
123123
attr_accessor :docstring
124124

125125
def doc_default
126-
if @doc_default.nil?
127-
Proc === default ? nil : default
126+
if @doc_default.nil? && !default.is_a?(Proc)
127+
default
128128
else
129129
@doc_default
130130
end

0 commit comments

Comments
 (0)