From 7870409cf18a59cd25ef5a0d542fa19be87569a4 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Wed, 26 Oct 2022 23:48:27 +1000 Subject: [PATCH] Remove unneeded trailing semi-colons from Ruby files --- lib/mruby/presym.rb | 2 +- test/t/module.rb | 2 +- test/t/string.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mruby/presym.rb b/lib/mruby/presym.rb index 016c2b20e..7f74569fa 100644 --- a/lib/mruby/presym.rb +++ b/lib/mruby/presym.rb @@ -102,7 +102,7 @@ module MRuby @list_path ||= "#{@build.build_dir}/presym".freeze end - def header_dir; + def header_dir @header_dir ||= "#{@build.build_dir}/include/mruby/presym".freeze end diff --git a/test/t/module.rb b/test/t/module.rb index 9aa018280..bcff595d3 100644 --- a/test/t/module.rb +++ b/test/t/module.rb @@ -686,7 +686,7 @@ end # assert_nothing_raised(SystemStackError, bug10847) do # 0.3.numerator # end - # end; + # end #end assert 'Module#prepend to frozen class' do diff --git a/test/t/string.rb b/test/t/string.rb index 447493227..2e9025c97 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -507,8 +507,8 @@ assert('String#replace', '15.2.10.5.28') do b = 'abc' * 10 c = ('cba' * 10).dup - b.replace(c); - c.replace(b); + b.replace(c) + c.replace(b) assert_equal c, b # shared string