Skip to content

Commit 624b5ab

Browse files
committed
lint
1 parent 5004f33 commit 624b5ab

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

interpreter/decode.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -370,13 +370,13 @@ func (d StorableDecoder) decodeStorable() (atree.Storable, error) {
370370
case values.CBORTagAccountCapabilityControllerValue:
371371
storable, err = d.decodeAccountCapabilityController()
372372

373-
case values.CBORTagPathCapabilityValue:
373+
case values.CBORTagPathCapabilityValue: //nolint:staticcheck
374374
storable, err = d.decodePathCapability()
375375

376-
case values.CBORTagPathLinkValue:
376+
case values.CBORTagPathLinkValue: //nolint:staticcheck
377377
storable, err = d.decodePathLink()
378378

379-
case values.CBORTagAccountLinkValue:
379+
case values.CBORTagAccountLinkValue: //nolint:staticcheck
380380
storable, err = d.decodeAccountLink()
381381

382382
default:

interpreter/value_link.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func (v PathLinkValue) Encode(e *atree.Encoder) error {
308308
// Encode tag number and array head
309309
err := e.CBOR.EncodeRawBytes([]byte{
310310
// tag number
311-
0xd8, values.CBORTagPathLinkValue,
311+
0xd8, values.CBORTagPathLinkValue, //nolint:staticcheck
312312
// array, 2 items follow
313313
0x82,
314314
})
@@ -332,7 +332,7 @@ func (v PathLinkValue) Encode(e *atree.Encoder) error {
332332
// }
333333
var cborAccountLinkValue = []byte{
334334
// tag
335-
0xd8, values.CBORTagAccountLinkValue,
335+
0xd8, values.CBORTagAccountLinkValue, //nolint:staticcheck
336336
// null
337337
0xf6,
338338
}

interpreter/value_pathcapability.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ func (v *PathCapabilityValue) Encode(e *atree.Encoder) error {
323323
// Encode tag number and array head
324324
err := e.CBOR.EncodeRawBytes([]byte{
325325
// tag number
326-
0xd8, values.CBORTagPathCapabilityValue,
326+
0xd8, values.CBORTagPathCapabilityValue, //nolint:staticcheck
327327
// array, 3 items follow
328328
0x83,
329329
})

0 commit comments

Comments
 (0)