Skip to content

Commit 27bff0d

Browse files
committed
Fix issue messages for RedundantWithClause
1 parent 61090dc commit 27bff0d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/credo/check/refactor/redundant_with_clause_result.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ defmodule Credo.Check.Refactor.RedundantWithClauseResult do
2929

3030
require Logger
3131

32-
@redundant_with "the `with` statement is redundant"
33-
@redundant_clause "the last clause in `with` is redundant"
32+
@redundant_with "`with` statement is redundant"
33+
@redundant_clause "Last clause in `with` is redundant"
3434

3535
@doc false
3636
@impl true

test/credo/check/refactor/redundant_with_clause_result_test.exs

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ defmodule Credo.Check.Refactor.RedundantWithClauseResultTest do
9494
|> to_source_file
9595
|> run_check(@described_check)
9696
|> assert_issue(fn issue ->
97-
assert issue.message == "the last clause in `with` is redundant"
97+
assert issue.message == "Last clause in `with` is redundant"
9898
end)
9999
end
100100

@@ -111,7 +111,7 @@ defmodule Credo.Check.Refactor.RedundantWithClauseResultTest do
111111
|> run_check(@described_check)
112112
|> assert_issue(fn issue ->
113113
assert issue.line_no == 2
114-
assert issue.message == "the last clause in `with` is redundant"
114+
assert issue.message == "Last clause in `with` is redundant"
115115
end)
116116
end
117117

@@ -127,7 +127,7 @@ defmodule Credo.Check.Refactor.RedundantWithClauseResultTest do
127127
|> run_check(@described_check)
128128
|> assert_issue(fn issue ->
129129
assert issue.line_no == 2
130-
assert issue.message == "the `with` statement is redundant"
130+
assert issue.message == "`with` statement is redundant"
131131
assert issue.trigger == "with"
132132
end)
133133
end

0 commit comments

Comments
 (0)