Skip to content

Commit c9eced4

Browse files
committed
Fixed credo errors
1 parent bde321b commit c9eced4

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

apps/common/lib/lexical.ex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,4 @@ defmodule Lexical do
1818

1919
@typedoc "A string representation of a path on the filesystem"
2020
@type path :: String.t()
21-
22-
def fun() do
23-
:ok
24-
end
2521
end

apps/common/test/lexical/document/path_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ defmodule ElixirLS.LanguageServer.SourceFile.PathTest do
147147

148148
test "windows path" do
149149
if windows?() do
150-
drive_letter = Path.expand("/") |> String.split(":") |> hd()
150+
drive_letter = "/" |> Path.expand() |> String.split(":") |> hd()
151151
assert "file:///c%3A/win/path" == to_uri("c:/win/path")
152152
assert "file:///c%3A/win/path" == to_uri("C:/win/path")
153153
assert "file:///c%3A/win/path" == to_uri("c:/win/path/")

apps/common/test/support/lexical/test/range_support.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
defmodule Lexical.Test.RangeSupport do
2-
alias Lexical.Math
3-
alias Lexical.Text
42
alias Lexical.Document
53
alias Lexical.Document.Position
64
alias Lexical.Document.Range
5+
alias Lexical.Math
76
alias Lexical.Test.CursorSupport
7+
alias Lexical.Text
88

99
import Lexical.Document.Line, only: [line: 1]
1010

0 commit comments

Comments
 (0)