Skip to content

Commit

Permalink
Harmonize import alias
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <[email protected]>
  • Loading branch information
stv0g committed Dec 10, 2024
1 parent e43a225 commit 5ea6c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pin_protected.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"fmt"

"cunicu.li/go-iso7816"
iso "cunicu.li/go-iso7816"
"cunicu.li/go-iso7816/encoding/tlv"
)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5ea6c8e

Please sign in to comment.