Skip to content

Commit 6127e70

Browse files
authored
Merge pull request #1154 from avinayak/patch-1
Remove deprecated module.function() notation
2 parents 3d9dae8 + 510658f commit 6127e70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/credo/check/params.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ defmodule Credo.Check.Params do
7171

7272
@doc false
7373
def category(params, check_mod) do
74-
params[:__category__] || params[:category] || check_mod.category()
74+
params[:__category__] || params[:category] || check_mod.category
7575
end
7676

7777
@doc false

lib/credo/cli/output.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ defmodule Credo.CLI.Output do
3333
end
3434

3535
def check_tag(check_mod, in_parens) do
36-
check_mod.category()
36+
check_mod.category
3737
|> to_string
3838
|> check_tag(in_parens)
3939
end

0 commit comments

Comments
 (0)