Skip to content

Commit

Permalink
Use end_with? and fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 31, 2023
1 parent 2b91b6b commit 7648ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/win32ole/sample/olegen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def generate_argtype(typedetails)
end
if ts.empty?
ts = 'VT_VARIANT'
elsif ts[-1] == ?|
ts += 'VT_VARIANT'
elsif ts.end_with?(?|)
ts += 'VT_VARIANT'
end
ts
end
Expand Down

0 comments on commit 7648ee7

Please sign in to comment.