Skip to content

Commit d22d472

Browse files
Copilotrbtr
andcommitted
Fix linting issues: remove extra whitespace in cnslogger.go
Co-authored-by: rbtr <[email protected]>
1 parent 3da0544 commit d22d472

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

cns/logger/cnslogger.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,14 @@ func (c *CNSLogger) Errorf(format string, args ...any) {
131131
c.sendTraceInternal(msg, ai.ErrorLevel)
132132
}
133133

134-
135-
136134
func (c *CNSLogger) Request(tag string, request any, err error) {
137135
c.logger.Request(tag, request, err)
138136
if c.th == nil || c.disableTraceLogging {
139137
return
140138
}
141-
139+
142140
requestString := log.ToJSONString(request)
143-
141+
144142
var msg string
145143
lvl := ai.InfoLevel
146144
if err == nil {
@@ -157,9 +155,9 @@ func (c *CNSLogger) Response(tag string, response any, returnCode types.Response
157155
if c.th == nil || c.disableTraceLogging {
158156
return
159157
}
160-
158+
161159
responseString := log.ToJSONString(response)
162-
160+
163161
var msg string
164162
lvl := ai.InfoLevel
165163
switch {
@@ -179,10 +177,10 @@ func (c *CNSLogger) ResponseEx(tag string, request, response any, returnCode typ
179177
if c.th == nil || c.disableTraceLogging {
180178
return
181179
}
182-
180+
183181
requestString := log.ToJSONString(request)
184182
responseString := log.ToJSONString(response)
185-
183+
186184
var msg string
187185
lvl := ai.InfoLevel
188186
switch {

0 commit comments

Comments
 (0)