Skip to content

Commit 7648ee7

Browse files
committed
Use end_with? and fix indent
1 parent 2b91b6b commit 7648ee7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/win32ole/sample/olegen.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def generate_argtype(typedetails)
7070
end
7171
if ts.empty?
7272
ts = 'VT_VARIANT'
73-
elsif ts[-1] == ?|
74-
ts += 'VT_VARIANT'
73+
elsif ts.end_with?(?|)
74+
ts += 'VT_VARIANT'
7575
end
7676
ts
7777
end

0 commit comments

Comments
 (0)