enable predeclared
Find code that shadows one of Go's predeclared identifiers. Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
parent
4e6589d51f
commit
6830790692
2 changed files with 2 additions and 3 deletions
|
|
@ -53,7 +53,6 @@ linters:
|
||||||
- nilnil
|
- nilnil
|
||||||
- paralleltest
|
- paralleltest
|
||||||
- perfsprint
|
- perfsprint
|
||||||
- predeclared
|
|
||||||
- revive
|
- revive
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- tagalign
|
- tagalign
|
||||||
|
|
|
||||||
|
|
@ -106,8 +106,8 @@ func (p *CodexProvider) Chat(
|
||||||
if evt.Type == "response.completed" || evt.Type == "response.failed" || evt.Type == "response.incomplete" {
|
if evt.Type == "response.completed" || evt.Type == "response.failed" || evt.Type == "response.incomplete" {
|
||||||
evtResp := evt.Response
|
evtResp := evt.Response
|
||||||
if evtResp.ID != "" {
|
if evtResp.ID != "" {
|
||||||
copy := evtResp
|
evtRespCopy := evtResp
|
||||||
resp = ©
|
resp = &evtRespCopy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue