ruby-changes:54504
From: ko1 <ko1@a...>
Date: Sat, 5 Jan 2019 09:32:00 +0900 (JST)
Subject: [ruby-changes:54504] ko1:r66719 (trunk): fix trivial indentation.
ko1 2019-01-05 09:31:54 +0900 (Sat, 05 Jan 2019) New Revision: 66719 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66719 Log: fix trivial indentation. Modified files: trunk/hash.c Index: hash.c =================================================================== --- hash.c (revision 66718) +++ hash.c (revision 66719) @@ -1849,8 +1849,10 @@ rb_hash_fetch_m(int argc, VALUE *argv, V https://github.com/ruby/ruby/blob/trunk/hash.c#L1849 return (VALUE)val; } else { - if (block_given) return rb_yield(key); - if (argc == 1) { + if (block_given) { + return rb_yield(key); + } + else if (argc == 1) { VALUE desc = rb_protect(rb_inspect, key, 0); if (NIL_P(desc)) { desc = rb_any_to_s(key); @@ -1858,7 +1860,9 @@ rb_hash_fetch_m(int argc, VALUE *argv, V https://github.com/ruby/ruby/blob/trunk/hash.c#L1860 desc = rb_str_ellipsize(desc, 65); rb_key_err_raise(rb_sprintf("key not found: %"PRIsVALUE, desc), hash, key); } - return argv[1]; + else { + return argv[1]; + } } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/