Skip to content

Commit

Permalink
Merge pull request #958 from plux/fix-lint
Browse files Browse the repository at this point in the history
Fix lint warnings
  • Loading branch information
robertoaloi authored Mar 27, 2021
2 parents 4b82a5c + eec2927 commit 013d01d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/els_lsp/src/els_diagnostics_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pt_deps(Module) ->

-spec applications_to_uris([poi()]) -> [uri()].
applications_to_uris(Applications) ->
Modules = [M|| #{id := {M, _F, _A}} <- Applications],
Modules = [M || #{id := {M, _F, _A}} <- Applications],
Fun = fun(M, Acc) ->
case els_utils:find_module(M) of
{ok, Uri} ->
Expand Down
4 changes: 2 additions & 2 deletions apps/els_lsp/test/els_diagnostics_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ elvis(Config) ->
els_mock_diagnostics:subscribe(),
ok = els_client:did_save(Uri),
Diagnostics = els_mock_diagnostics:wait_until_complete(),
CDiagnostics = [D|| #{source := <<"Compiler">>} = D <- Diagnostics],
EDiagnostics = [D|| #{source := <<"Elvis">>} = D <- Diagnostics],
CDiagnostics = [D || #{source := <<"Compiler">>} = D <- Diagnostics],
EDiagnostics = [D || #{source := <<"Elvis">>} = D <- Diagnostics],
?assertEqual(0, length(CDiagnostics)),
?assertEqual(2, length(EDiagnostics)),
Warnings = [D || #{severity := ?DIAGNOSTIC_WARNING} = D <- EDiagnostics],
Expand Down

0 comments on commit 013d01d

Please sign in to comment.