ruby-changes:65185
From: Nobuyoshi <ko1@a...>
Date: Mon, 8 Feb 2021 11:38:32 +0900 (JST)
Subject: [ruby-changes:65185] 1ba2b5cdee (master): Removed unnecessary parentheses at `case` [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=1ba2b5cdee From 1ba2b5cdee62426326b93b77877c141609f0b939 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 8 Feb 2021 10:35:51 +0900 Subject: Removed unnecessary parentheses at `case` [ci skip] --- vm_eval.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vm_eval.c b/vm_eval.c index eae9464..58f8117 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -477,12 +477,12 @@ rb_call0(rb_execution_context_t *ec, https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L477 call_type scope = call_scope; int kw_splat = RB_NO_KEYWORDS; - switch(scope) { - case(CALL_PUBLIC_KW): + switch (scope) { + case CALL_PUBLIC_KW: scope = CALL_PUBLIC; kw_splat = 1; break; - case(CALL_FCALL_KW): + case CALL_FCALL_KW: scope = CALL_FCALL; kw_splat = 1; break; -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/