Skip to content

Commit

Permalink
final cleanup?
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust committed Apr 18, 2024
1 parent eb1ab54 commit 94bc28a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 43 deletions.
2 changes: 1 addition & 1 deletion lib/style/configs.ex
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ defmodule Styler.Style.Configs do
def set_lines([{_, meta, _} = node | nodes], comments, start_line, n_acc, c_acc) do
line = meta[:line]
last_line = meta[:end_of_expression][:line] || Style.max_line(node)
# IO.puts "shifting by #{shift}"

{node, node_comments, comments} =
if start_line == line do
{node, [], comments}
Expand Down
6 changes: 4 additions & 2 deletions test/style/configs_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ defmodule Styler.Style.ConfigsTest do
config :a, 2
config :a, 3
config :a, 4
# comment
# b comment
config :b, 1
Expand Down Expand Up @@ -284,9 +283,9 @@ defmodule Styler.Style.ConfigsTest do
# cd
cd: :cd
config :b, :apples, :oranges
# yeehaw
config :b, :yeehaw, :meow
config :b, :apples, :oranges
config :b,
a: :b,
# bcd
Expand Down Expand Up @@ -325,6 +324,7 @@ defmodule Styler.Style.ConfigsTest do
ad: :cd
config :b, :apples, :oranges
# yeehaw
config :b, :yeehaw, :meow
Expand All @@ -335,6 +335,8 @@ defmodule Styler.Style.ConfigsTest do
e: :f
config :c,
# some junk after b, idk
# ca
ca: :ca,
# cb 1
Expand Down
40 changes: 0 additions & 40 deletions test/style/set_lines_test.exs

This file was deleted.

0 comments on commit 94bc28a

Please sign in to comment.