[前][次][番号順一覧][スレッド一覧]

ruby-changes:63586

From: Nobuyoshi <ko1@a...>
Date: Thu, 12 Nov 2020 19:27:49 +0900 (JST)
Subject: [ruby-changes:63586] 0d52dce3a3 (master): strip trailing spaces and adjusted indents [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=0d52dce3a3

From 0d52dce3a35c81df5129bc796eace5048827daf0 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 12 Nov 2020 19:27:20 +0900
Subject: strip trailing spaces and adjusted indents [ci skip]


diff --git a/cont.c b/cont.c
index 8d13988..88ce28b 100644
--- a/cont.c
+++ b/cont.c
@@ -1825,19 +1825,19 @@ rb_fiber_initialize_kw(int argc, VALUE* argv, VALUE self, int kw_splat) https://github.com/ruby/ruby/blob/trunk/cont.c#L1825
     VALUE blocking = Qfalse;
 
     if (kw_splat != RB_NO_KEYWORDS) {
-      VALUE options = Qnil;
-      VALUE arguments[2] = {Qundef};
-
-      argc = rb_scan_args_kw(kw_splat, argc, argv, ":", &options);
-      rb_get_kwargs(options, fiber_initialize_keywords, 0, 2, arguments);
-
-      if (arguments[0] != Qundef) {
-        blocking = arguments[0];
-      }
-      
-      if (arguments[1] != Qundef) {
-        pool = arguments[1];
-      }
+        VALUE options = Qnil;
+        VALUE arguments[2] = {Qundef};
+
+        argc = rb_scan_args_kw(kw_splat, argc, argv, ":", &options);
+        rb_get_kwargs(options, fiber_initialize_keywords, 0, 2, arguments);
+
+        if (arguments[0] != Qundef) {
+            blocking = arguments[0];
+        }
+
+        if (arguments[1] != Qundef) {
+            pool = arguments[1];
+        }
     }
 
     return fiber_initialize(self, rb_block_proc(), rb_fiber_pool_default(pool), RTEST(blocking));
diff --git a/thread_sync.c b/thread_sync.c
index 86387ac..e62e7a4 100644
--- a/thread_sync.c
+++ b/thread_sync.c
@@ -30,7 +30,7 @@ sync_wakeup(struct list_head *head, long max) https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L30
         list_del_init(&cur->node);
 
         if (cur->th->status != THREAD_KILLED) {
-            
+
             if (cur->th->scheduler != Qnil) {
                 rb_scheduler_unblock(cur->th->scheduler, cur->self, rb_fiberptr_self(cur->fiber));
             } else {
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]