Skip to content

Commit a5380af

Browse files
authored
Merge pull request #18 from tycooon/fix-typo
Fix typo
2 parents 6734c93 + 8bfe84a commit a5380af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

migration/unmarshal.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"google.golang.org/protobuf/proto"
1111
)
1212

13-
// ErrUnkown scheme or host
14-
var ErrUnkown = errors.New("unknown")
13+
// ErrUnknown scheme or host
14+
var ErrUnknown = errors.New("unknown")
1515

1616
// Data extracts data part from URL string
1717
func Data(link string) ([]byte, error) {
@@ -20,10 +20,10 @@ func Data(link string) ([]byte, error) {
2020
return nil, err
2121
}
2222
if u.Scheme != "otpauth-migration" {
23-
return nil, fmt.Errorf("scheme %s: %w", u.Scheme, ErrUnkown)
23+
return nil, fmt.Errorf("scheme %s: %w", u.Scheme, ErrUnknown)
2424
}
2525
if u.Host != "offline" {
26-
return nil, fmt.Errorf("host %s: %w", u.Host, ErrUnkown)
26+
return nil, fmt.Errorf("host %s: %w", u.Host, ErrUnknown)
2727
}
2828
data := u.Query().Get("data")
2929
// fix spaces back to plus sign

0 commit comments

Comments
 (0)