[ruby/win32ole] Use end_with? and fix indent

https://github.com/ruby/win32ole/commit/7648ee7e56
This commit is contained in:
Nobuyoshi Nakada 2023-12-31 17:40:32 +09:00 committed by git
parent bd6f983403
commit 703ad99bf8

View File

@ -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