From 5ea6c8e17b2128cee1124eb534bfa84f90d99a96 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 5 Jun 2024 21:05:06 +0200 Subject: [PATCH] Harmonize import alias Signed-off-by: Steffen Vogel --- pin_protected.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pin_protected.go b/pin_protected.go index 4612acd..f6c0a39 100644 --- a/pin_protected.go +++ b/pin_protected.go @@ -7,7 +7,7 @@ import ( "errors" "fmt" - "cunicu.li/go-iso7816" + iso "cunicu.li/go-iso7816" "cunicu.li/go-iso7816/encoding/tlv" ) @@ -83,7 +83,7 @@ func (c *Card) PinProtectedData(pin string) (*PinProtectedData, error) { resp, err := sendTLV(c.tx, insGetData, 0x3f, 0xff, doPrinted.TagValue()) if err != nil { - if errors.Is(err, iso7816.ErrFileOrAppNotFound) { + if errors.Is(err, iso.ErrFileOrAppNotFound) { return nil, ErrNotFound } return nil, fmt.Errorf("failed to execute command: %w", err)