mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
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:
@@ -53,7 +53,6 @@ linters:
|
||||
- nilnil
|
||||
- paralleltest
|
||||
- perfsprint
|
||||
- predeclared
|
||||
- revive
|
||||
- staticcheck
|
||||
- tagalign
|
||||
|
||||
@@ -106,8 +106,8 @@ func (p *CodexProvider) Chat(
|
||||
if evt.Type == "response.completed" || evt.Type == "response.failed" || evt.Type == "response.incomplete" {
|
||||
evtResp := evt.Response
|
||||
if evtResp.ID != "" {
|
||||
copy := evtResp
|
||||
resp = ©
|
||||
evtRespCopy := evtResp
|
||||
resp = &evtRespCopy
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user