Commit 27bff0d 1 parent 61090dc commit 27bff0d Copy full SHA for 27bff0d
File tree 2 files changed +5
-5
lines changed
test/credo/check/refactor
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ defmodule Credo.Check.Refactor.RedundantWithClauseResult do
29
29
30
30
require Logger
31
31
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"
34
34
35
35
@ doc false
36
36
@ impl true
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ defmodule Credo.Check.Refactor.RedundantWithClauseResultTest do
94
94
|> to_source_file
95
95
|> run_check ( @ described_check )
96
96
|> 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"
98
98
end )
99
99
end
100
100
@@ -111,7 +111,7 @@ defmodule Credo.Check.Refactor.RedundantWithClauseResultTest do
111
111
|> run_check ( @ described_check )
112
112
|> assert_issue ( fn issue ->
113
113
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"
115
115
end )
116
116
end
117
117
@@ -127,7 +127,7 @@ defmodule Credo.Check.Refactor.RedundantWithClauseResultTest do
127
127
|> run_check ( @ described_check )
128
128
|> assert_issue ( fn issue ->
129
129
assert issue . line_no == 2
130
- assert issue . message == "the `with` statement is redundant"
130
+ assert issue . message == "`with` statement is redundant"
131
131
assert issue . trigger == "with"
132
132
end )
133
133
end
You can’t perform that action at this time.
0 commit comments