From 59b2d79694fa0b5ad7005e3af62c4dc501788283 Mon Sep 17 00:00:00 2001 From: Manuel Fittko Date: Fri, 8 Nov 2024 09:50:07 +0100 Subject: [PATCH] add to_s --- rdjson_formatter/rdjson_formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdjson_formatter/rdjson_formatter.rb b/rdjson_formatter/rdjson_formatter.rb index 0ff217b..9523b1c 100644 --- a/rdjson_formatter/rdjson_formatter.rb +++ b/rdjson_formatter/rdjson_formatter.rb @@ -109,7 +109,7 @@ def build_suggestions(offense) next if range.end_pos <= min_begin_pos || range.begin_pos >= max_end_pos corrected_text += source_buffer.source[current_pos...range.begin_pos] if current_pos < range.begin_pos - corrected_text += replacement_text + corrected_text += replacement_text.to_s current_pos = range.end_pos end