Skip to content

Commit 57b2709

Browse files
committed
Fix warnings
1 parent f1176e2 commit 57b2709

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/ex_doc/retriever.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,6 @@ defmodule ExDoc.Retriever do
338338
defp source_link(%{path: _, url: nil}, _line), do: nil
339339

340340
defp source_link(source, line) do
341-
Utils.source_url_pattern(source.url, source.path |> Path.relative_to(File.cwd!()), line)
341+
Utils.source_url_pattern(source.url, path_relative_to_cwd(source.path, []), line)
342342
end
343343
end

test/mix/tasks/docs_test.exs

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ defmodule Mix.Tasks.DocsTest do
77

88
import ExUnit.CaptureIO
99

10-
alias ExDoc.Utils
11-
1210
@moduletag :tmp_dir
1311

1412
def run(context, args, opts, generator \\ &{&1, &2, &3}) do

0 commit comments

Comments
 (0)