[ruby/win32ole] Use end_with?
and fix indent
https://github.com/ruby/win32ole/commit/7648ee7e56
This commit is contained in:
parent
bd6f983403
commit
703ad99bf8
@ -70,8 +70,8 @@ class WIN32COMGen
|
|||||||
end
|
end
|
||||||
if ts.empty?
|
if ts.empty?
|
||||||
ts = 'VT_VARIANT'
|
ts = 'VT_VARIANT'
|
||||||
elsif ts[-1] == ?|
|
elsif ts.end_with?(?|)
|
||||||
ts += 'VT_VARIANT'
|
ts += 'VT_VARIANT'
|
||||||
end
|
end
|
||||||
ts
|
ts
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user