From 72897d32ed3e3a96b35a90408c885f5c5b5c28c6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 16 Nov 2023 11:18:49 +0900 Subject: [PATCH] Revert "chore: Remove unnecessary argument for `join` method" This reverts commit 4a1c74bc0a0972a83a90780be3ce077298e5e98d. Since RDoc still supports ruby 2.6 which has not deprecated `$,`, the argument of `Array#join` is not unnecessary yet. --- lib/rdoc/token_stream.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdoc/token_stream.rb b/lib/rdoc/token_stream.rb index adeef5b660..1ff4b0d09e 100644 --- a/lib/rdoc/token_stream.rb +++ b/lib/rdoc/token_stream.rb @@ -112,7 +112,7 @@ def token_stream # Returns a string representation of the token stream def tokens_to_s - token_stream.compact.map { |token| token[:text] }.join + token_stream.compact.map { |token| token[:text] }.join '' end end