We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5db1da3 commit 6e681d5Copy full SHA for 6e681d5
scripts/rules.go
@@ -143,23 +143,23 @@ func publishInTransaction(m dsl.Matcher) {
143
144
// Match direct calls to the Publish method of a pubsub instance inside InTx
145
m.Match(`
146
- $x.InTx(func($y) error {
+ $_.InTx(func($x) error {
147
$*_
148
$_ = $ps.Publish($evt, $msg)
149
150
}, $*_)
151
`,
152
// Alternative with short variable declaration
153
`
154
155
156
$_ := $ps.Publish($evt, $msg)
157
158
159
160
// Without catching error return
161
162
163
164
$ps.Publish($evt, $msg)
165
0 commit comments