Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
e3748da8
Commit
e3748da8
authored
Feb 07, 2026
by
erio
Browse files
fix(lint): handle errcheck for strings.Builder.WriteString
parent
36e6fb5f
Changes
1
Show whitespace changes
Inline
Side-by-side
backend/internal/service/gateway_service.go
View file @
e3748da8
...
@@ -495,14 +495,14 @@ func (s *GatewayService) GenerateSessionHash(parsed *ParsedRequest) string {
...
@@ -495,14 +495,14 @@ func (s *GatewayService) GenerateSessionHash(parsed *ParsedRequest) string {
if
parsed
.
System
!=
nil
{
if
parsed
.
System
!=
nil
{
systemText
:=
s
.
extractTextFromSystem
(
parsed
.
System
)
systemText
:=
s
.
extractTextFromSystem
(
parsed
.
System
)
if
systemText
!=
""
{
if
systemText
!=
""
{
combined
.
WriteString
(
systemText
)
_
,
_
=
combined
.
WriteString
(
systemText
)
}
}
}
}
for
_
,
msg
:=
range
parsed
.
Messages
{
for
_
,
msg
:=
range
parsed
.
Messages
{
if
m
,
ok
:=
msg
.
(
map
[
string
]
any
);
ok
{
if
m
,
ok
:=
msg
.
(
map
[
string
]
any
);
ok
{
msgText
:=
s
.
extractTextFromContent
(
m
[
"content"
])
msgText
:=
s
.
extractTextFromContent
(
m
[
"content"
])
if
msgText
!=
""
{
if
msgText
!=
""
{
combined
.
WriteString
(
msgText
)
_
,
_
=
combined
.
WriteString
(
msgText
)
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment