From 52d58a61db7b11911cb5392548ee99bcff7f8f91 Mon Sep 17 00:00:00 2001 From: ilija Date: Fri, 24 Jan 2025 17:10:28 +0100 Subject: [PATCH] lint --- pkg/solana/codec/decoder.go | 4 ++-- pkg/solana/codec/encoder.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/solana/codec/decoder.go b/pkg/solana/codec/decoder.go index a988c88e6..c91805f71 100644 --- a/pkg/solana/codec/decoder.go +++ b/pkg/solana/codec/decoder.go @@ -34,7 +34,7 @@ func (d *decoder) Decode(ctx context.Context, raw []byte, into any, itemType str }() if d.lenientCodecFromTypeCodec == nil { - return fmt.Errorf("decoder is not properly initalised, underlying lenientCodecFromTypeCodec is nil") + return fmt.Errorf("decoder is not properly initialised, underlying lenientCodecFromTypeCodec is nil") } return d.lenientCodecFromTypeCodec.Decode(ctx, raw, into, itemType) @@ -42,7 +42,7 @@ func (d *decoder) Decode(ctx context.Context, raw []byte, into any, itemType str func (d *decoder) GetMaxDecodingSize(_ context.Context, n int, itemType string) (int, error) { if d.definitions == nil { - return 0, fmt.Errorf("decoder is not properly initalised, type definitions are nil") + return 0, fmt.Errorf("decoder is not properly initialised, type definitions are nil") } codecEntry, ok := d.definitions[itemType] diff --git a/pkg/solana/codec/encoder.go b/pkg/solana/codec/encoder.go index 0b528ff79..9bc519bd0 100644 --- a/pkg/solana/codec/encoder.go +++ b/pkg/solana/codec/encoder.go @@ -34,7 +34,7 @@ func (e *encoder) Encode(ctx context.Context, item any, itemType string) (res [] }() if e.lenientCodecFromTypeCodec == nil { - return nil, fmt.Errorf("encoder is not properly initalised, underlying lenientCodecFromTypeCodec is nil") + return nil, fmt.Errorf("encoder is not properly initialised, underlying lenientCodecFromTypeCodec is nil") } return e.lenientCodecFromTypeCodec.Encode(ctx, item, itemType) @@ -42,7 +42,7 @@ func (e *encoder) Encode(ctx context.Context, item any, itemType string) (res [] func (e *encoder) GetMaxEncodingSize(_ context.Context, n int, itemType string) (int, error) { if e.definitions == nil { - return 0, fmt.Errorf("encoder is not properly initalised, type definitions are nil") + return 0, fmt.Errorf("encoder is not properly initialised, type definitions are nil") } entry, ok := e.definitions[itemType]