@@ -66,12 +66,12 @@ const (
66
66
**********************************************************************************************************************/
67
67
68
68
// Duration represents duration in format "00:00:00".
69
- type Duration struct {
69
+ type Duration struct { //nolint:recvcheck
70
70
time.Duration
71
71
}
72
72
73
73
// Time represents time in format "00:00:00".
74
- type Time struct {
74
+ type Time struct { //nolint:recvcheck
75
75
time.Time
76
76
}
77
77
@@ -262,7 +262,7 @@ type NodeMonitoring struct {
262
262
**********************************************************************************************************************/
263
263
264
264
// MarshalJSON marshals JSON Time type.
265
- func (t * Time ) MarshalJSON () (b []byte , err error ) {
265
+ func (t Time ) MarshalJSON () (b []byte , err error ) {
266
266
if b , err = json .Marshal (t .Format ("15:04:05" )); err != nil {
267
267
return nil , aoserrors .Wrap (err )
268
268
}
@@ -319,7 +319,7 @@ func (t *Time) UnmarshalJSON(b []byte) (err error) {
319
319
}
320
320
321
321
// MarshalJSON marshals JSON Duration type.
322
- func (d * Duration ) MarshalJSON () (b []byte , err error ) {
322
+ func (d Duration ) MarshalJSON () (b []byte , err error ) {
323
323
if b , err = json .Marshal (d .Duration .String ()); err != nil {
324
324
return nil , aoserrors .Wrap (err )
325
325
}
0 commit comments