diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-10-21 17:45:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-10-21 17:45:27 +0900 |
commit | 5d63a9da40b452d0455923b6838a961224c933bc (patch) | |
tree | 7766c416a5912b6e0c98c6619ef348fc5c55d357 /hash.c | |
parent | b9702590445dfea62d271d0a5c942b7adfaaacdd (diff) |
[Bug #16121] adjusted indent [ci skip]
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -2833,23 +2833,23 @@ rb_hash_replace(VALUE hash, VALUE hash2) COPY_DEFAULT(hash, hash2); if (RHASH_AR_TABLE_P(hash)) { - if (RHASH_AR_TABLE_P(hash2)) { - ar_clear(hash); - } - else { - ar_free_and_clear_table(hash); - RHASH_ST_TABLE_SET(hash, st_init_table_with_size(RHASH_TYPE(hash2), RHASH_SIZE(hash2))); - } + if (RHASH_AR_TABLE_P(hash2)) { + ar_clear(hash); + } + else { + ar_free_and_clear_table(hash); + RHASH_ST_TABLE_SET(hash, st_init_table_with_size(RHASH_TYPE(hash2), RHASH_SIZE(hash2))); + } } else { - if (RHASH_AR_TABLE_P(hash2)) { - st_free_table(RHASH_ST_TABLE(hash)); - RHASH_ST_CLEAR(hash); - } - else { - st_clear(RHASH_ST_TABLE(hash)); - RHASH_TBL_RAW(hash)->type = RHASH_ST_TABLE(hash2)->type; - } + if (RHASH_AR_TABLE_P(hash2)) { + st_free_table(RHASH_ST_TABLE(hash)); + RHASH_ST_CLEAR(hash); + } + else { + st_clear(RHASH_ST_TABLE(hash)); + RHASH_TBL_RAW(hash)->type = RHASH_ST_TABLE(hash2)->type; + } } rb_hash_foreach(hash2, rb_hash_rehash_i, (VALUE)hash); |