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

ruby-changes:74060

From: Nobuyoshi <ko1@a...>
Date: Tue, 18 Oct 2022 00:23:44 +0900 (JST)
Subject: [ruby-changes:74060] 637144b834 (master): Adjust indents [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=637144b834

From 637144b83432781e7e070ca74445b172f8af109e Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 18 Oct 2022 00:23:23 +0900
Subject: Adjust indents [ci skip]

---
 thread_sync.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/thread_sync.c b/thread_sync.c
index b2ee052aa5..3888534468 100644
--- a/thread_sync.c
+++ b/thread_sync.c
@@ -1030,13 +1030,13 @@ queue_do_pop(VALUE self, struct rb_queue *q, int should_block, VALUE timeout) https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L1030
 {
     check_array(self, q->que);
     if (RARRAY_LEN(q->que) == 0) {
-      if (!should_block) {
-          rb_raise(rb_eThreadError, "queue empty");
-      }
+        if (!should_block) {
+            rb_raise(rb_eThreadError, "queue empty");
+        }
 
-      if (RTEST(rb_equal(INT2FIX(0), timeout))) {
-        return Qnil;
-      }
+        if (RTEST(rb_equal(INT2FIX(0), timeout))) {
+            return Qnil;
+        }
     }
 
     rb_hrtime_t end = queue_timeout2hrtime(timeout);
@@ -1241,13 +1241,13 @@ rb_szqueue_push(rb_execution_context_t *ec, VALUE self, VALUE object, VALUE non_ https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L1241
     struct rb_szqueue *sq = szqueue_ptr(self);
 
     if (queue_length(self, &sq->q) >= sq->max) {
-      if (RTEST(non_block)) {
-          rb_raise(rb_eThreadError, "queue full");
-      }
+        if (RTEST(non_block)) {
+            rb_raise(rb_eThreadError, "queue full");
+        }
 
-      if (RTEST(rb_equal(INT2FIX(0), timeout))) {
-        return Qnil;
-      }
+        if (RTEST(rb_equal(INT2FIX(0), timeout))) {
+            return Qnil;
+        }
     }
 
     rb_hrtime_t end = queue_timeout2hrtime(timeout);
-- 
cgit v1.2.3


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

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