github-vet / rangeloop-pointer-findings

Issue tracker collects instances of Go code on GitHub that make use of references to range loop variables.
0 stars 0 forks source link

temporalio/temporal: common/persistence/sql/sqlplugin/tests/namespace_test.go; 3 LoC #18409

Closed githubvet closed 3 years ago

githubvet commented 3 years ago

Found a possible issue in temporalio/temporal at common/persistence/sql/sqlplugin/tests/namespace_test.go

Below is the message reported by the analyzer for this snippet of code. Beware that the analyzer only reports the first issue it finds, so please do not limit your consideration to the contents of the below message.

reference to row is reassigned at line 332

Click here to see the code in its original context.

Click here to show the 3 line(s) of Go which triggered the analyzer. ```go for _, row := range rowsPerPage { rows[row.ID.String()] = &row } ```

Leave a reaction on this issue to contribute to the project by classifying this instance as a Bug :-1:, Mitigated :+1:, or Desirable Behavior :rocket: See the descriptions of the classifications here for more information.

commit ID: b3b3e7b5ada768a122cd383ed7d28b6383a1d217