Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Harmonize import alias
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <[email protected]>
stv0g committed Dec 10, 2024

Verified

This commit was signed with the committer’s verified signature.
VannTen Max Gautier
1 parent e43a225 commit dd2629a
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
@@ -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)

0 comments on commit dd2629a

Please sign in to comment.