Skip to content

Commit

Permalink
qrg: Remove unused constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Vitan committed Sep 10, 2024
1 parent 0e6a9fc commit f5be211
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/qrcodegenerator/qrcode/gateways/ttigpro1.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ import (
)

const (
ttigpro1FormatID = "ttigpro1"
ttigpro1EUILength = 16
ttigpro1OwnerTokenLength = 12
ttigpro1FormatID = "ttigpro1"
)

// ttigpro1Regex is the regular expression to match the TTIGPRO1 format.
Expand All @@ -51,7 +49,7 @@ func (m *ttigpro1) UnmarshalText(text []byte) error {

m.ownerToken = matches[2]

if len(m.ownerToken) != ttigpro1OwnerTokenLength {
if len(m.ownerToken) != 12 /* owner token length */ {
return errInvalidLength
}

Expand Down

0 comments on commit f5be211

Please sign in to comment.