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

ruby-changes:56572

From: git <ko1@a...>
Date: Tue, 16 Jul 2019 09:22:26 +0900 (JST)
Subject: [ruby-changes:56572] git: e2f987e654 (master): * expand tabs.

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

From e2f987e65461bff85be2146dda93655b7d13a537 Mon Sep 17 00:00:00 2001
From: git <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Tue, 16 Jul 2019 09:22:11 +0900
Subject: * expand tabs.


diff --git a/class.c b/class.c
index e3f4f52..7922df5 100644
--- a/class.c
+++ b/class.c
@@ -1884,7 +1884,7 @@ rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, V https://github.com/ruby/ruby/blob/trunk/class.c#L1884
 	for (; i < required; i++) {
 	    VALUE keyword = ID2SYM(table[i]);
 	    if (keyword_hash) {
-		if (extract_kwarg(keyword, values[i])) {
+                if (extract_kwarg(keyword, values[i])) {
 		    continue;
 		}
 	    }
@@ -1898,7 +1898,7 @@ rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, V https://github.com/ruby/ruby/blob/trunk/class.c#L1898
     j = i;
     if (optional && keyword_hash) {
 	for (i = 0; i < optional; i++) {
-	    if (extract_kwarg(ID2SYM(table[required+i]), values[required+i])) {
+            if (extract_kwarg(ID2SYM(table[required+i]), values[required+i])) {
 		j++;
 	    }
 	}
@@ -1909,9 +1909,9 @@ rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, V https://github.com/ruby/ruby/blob/trunk/class.c#L1909
 	}
     }
     if (values && !keyword_hash) {
-	for (i = 0; i < required + optional; i++) {
-	    values[i] = Qundef;
-	}
+        for (i = 0; i < required + optional; i++) {
+            values[i] = Qundef;
+        }
     }
     return j;
 #undef extract_kwarg
-- 
cgit v0.10.2


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

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