Skip to content

Commit

Permalink
Fixes #495
Browse files Browse the repository at this point in the history
Removed the output of the device tuple
  • Loading branch information
RobertDober committed Jul 2, 2024
1 parent df44cab commit d6dc531
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib1/earmark/sys_interface.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ defmodule Earmark.SysInterface do
"""
def readlines(device_or_filename)
def readlines(filename) when is_binary(filename) do
IO.inspect(filename, label: :inside)
case File.open(filename, [:utf8]) do
{:ok, device} -> readlines(device)
{:error, _} = error -> error
end
end
def readlines(device) do
IO.inspect(device, label: :device)
IO.stream(device, :line)
end
end
Expand Down

0 comments on commit d6dc531

Please sign in to comment.