From 599834a5d41fce2307aba7bb3b7dcd133d9d448f Mon Sep 17 00:00:00 2001 From: Kazuki Nishikawa Date: Wed, 8 Jan 2025 17:38:19 +0900 Subject: [PATCH] refactor: remove useless assignment --- lib/rufo/formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rufo/formatter.rb b/lib/rufo/formatter.rb index b4a7f614..abb64724 100644 --- a/lib/rufo/formatter.rb +++ b/lib/rufo/formatter.rb @@ -2713,7 +2713,7 @@ def visit_literal_elements(elements, inside_hash: false, inside_array: false, to base_column = @column base_line = @line needs_final_space = (inside_hash || inside_array) && space? - first_space = skip_space + skip_space if inside_hash needs_final_space = false