Skip to content

Commit 6e681d5

Browse files
committed
chore: drop unnecessary identifiers
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent 5db1da3 commit 6e681d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/rules.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,23 +143,23 @@ func publishInTransaction(m dsl.Matcher) {
143143

144144
// Match direct calls to the Publish method of a pubsub instance inside InTx
145145
m.Match(`
146-
$x.InTx(func($y) error {
146+
$_.InTx(func($x) error {
147147
$*_
148148
$_ = $ps.Publish($evt, $msg)
149149
$*_
150150
}, $*_)
151151
`,
152152
// Alternative with short variable declaration
153153
`
154-
$x.InTx(func($y) error {
154+
$_.InTx(func($x) error {
155155
$*_
156156
$_ := $ps.Publish($evt, $msg)
157157
$*_
158158
}, $*_)
159159
`,
160160
// Without catching error return
161161
`
162-
$x.InTx(func($y) error {
162+
$_.InTx(func($x) error {
163163
$*_
164164
$ps.Publish($evt, $msg)
165165
$*_

0 commit comments

Comments
 (0)