File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 43
43
//
44
44
// error sending response: UDP not listening
45
45
func (o * Result ) Logf (a ... any ) * Result {
46
+ if o .Err == nil {
47
+ return o
48
+ }
46
49
return o .logf (logfFrameLvl , a )
47
50
}
48
51
@@ -57,6 +60,9 @@ func (o *Result) Logf(a ...any) *Result {
57
60
//
58
61
// error sending response: UDP not listening
59
62
func (o * Result1 [T ]) Logf (a ... any ) * Result1 [T ] {
63
+ if o .Err == nil {
64
+ return o
65
+ }
60
66
o .Result .logf (logfFrameLvl , a )
61
67
return o
62
68
}
@@ -72,6 +78,9 @@ func (o *Result1[T]) Logf(a ...any) *Result1[T] {
72
78
//
73
79
// error sending response: UDP not listening
74
80
func (o * Result2 [T , U ]) Logf (a ... any ) * Result2 [T , U ] {
81
+ if o .Err == nil {
82
+ return o
83
+ }
75
84
o .Result .logf (logfFrameLvl , a )
76
85
return o
77
86
}
@@ -277,9 +286,6 @@ func wrapStr() string {
277
286
}
278
287
279
288
func (o * Result ) logf (lvl int , a []any ) * Result {
280
- if o .Err == nil {
281
- return o
282
- }
283
289
s := o .Err .Error ()
284
290
if len (a ) != 0 {
285
291
f , isFormat := a [0 ].(string )
You can’t perform that action at this time.
0 commit comments