Skip to content

Commit

Permalink
improvement: make diff checking faster
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jan 30, 2025
1 parent 83479c5 commit 43f3a74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/igniter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1559,9 +1559,7 @@ defmodule Igniter do
end

def changed?(%Rewrite.Source{} = source) do
diff = Rewrite.Source.diff(source) |> IO.iodata_to_binary()

String.trim(diff) != ""
Rewrite.Source.updated?(source, :content)
end

@doc false
Expand Down

0 comments on commit 43f3a74

Please sign in to comment.