summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/array.c b/array.c
index 9fae8dcc46..9d5dcd768f 100644
--- a/array.c
+++ b/array.c
@@ -860,8 +860,10 @@ rb_ary_to_s(ary)
VALUE str, sep;
if (RARRAY(ary)->len == 0) return rb_str_new(0, 0);
- if (!NIL_P(rb_output_fs)) sep = rb_output_fs;
- else sep = rb_default_rs;
+ sep = rb_output_fs;
+#if 1
+ if (NIL_P(rb_output_fs)) sep = rb_default_rs; /* newline */
+#endif
str = rb_ary_join(ary, sep);
return str;
}