Skip to content

Commit

Permalink
fix dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
plux committed Apr 29, 2024
1 parent 75079e0 commit 7fac502
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/els_lsp/src/els_code_actions.erl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ add_include_lib_record(Uri, Range, _Data, [Record]) ->
Name = binary_to_atom(Record, utf8),
add_include_file(Uri, Range, 'record', Name, Name).

-spec add_include_file(uri(), range(), els_poi:poi_kind(), binary(), els_poi:poi_id()) -> [map()].
-spec add_include_file(uri(), range(), els_poi:poi_kind(), atom(), els_poi:poi_id()) -> [map()].
add_include_file(Uri, Range, Kind, Name, Id) ->
%% TODO: Add support for -include() also
%% TODO: Doesn't work for OTP headers
Expand Down
2 changes: 1 addition & 1 deletion apps/els_lsp/src/els_dt_document.erl
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ wrapping_functions(Document, Range) ->
find_candidates(Pattern) ->
find_candidates(Pattern, '_').

-spec find_candidates(atom() | string(), module | header) -> [uri()].
-spec find_candidates(atom() | string(), module | header | '_') -> [uri()].
find_candidates(Pattern, Kind) ->
%% ets:fun2ms(fun(#els_dt_document{source = Source, uri = Uri, words = Words})
%% when Source =/= otp -> {Uri, Words} end).
Expand Down

0 comments on commit 7fac502

Please sign in to comment.