Skip to content

Commit 418741e

Browse files
authored
Merge pull request #1198 from Eiji7/fix-duplicate-code-check
fix incorrect call with Inspect.Algebra.format/2 result
2 parents f3b2f89 + 22118c4 commit 418741e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/credo/check/design/duplicated_code.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ defmodule Credo.Check.Design.DuplicatedCode do
210210
ast
211211
|> Inspect.Algebra.to_doc(%Inspect.Opts{})
212212
|> Inspect.Algebra.format(80)
213-
|> Enum.join("")
213+
|> IO.iodata_to_binary()
214214

215215
:sha256
216216
|> :crypto.hash(string)

0 commit comments

Comments
 (0)