Skip to content

Commit

Permalink
update error name;
Browse files Browse the repository at this point in the history
update doc comments
  • Loading branch information
electrofocus committed Sep 15, 2021
1 parent 1f048ac commit a0baeea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tgverifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"fmt"
)

// ErrInvalidCreds represents error in case of having invalid Telegram auth credentials
var ErrInvalidCreds = errors.New("invalid telegram creds")
// ErrInvalidCredentials represents error in case of having invalid Telegram auth credentials.
var ErrInvalidCredentials = errors.New("invalid telegram creds")

// Credentials are Telegram Login credentials available for parsing from JSON.
type Credentials struct {
Expand All @@ -33,7 +33,7 @@ func (c *Credentials) Verify(token []byte) error {
)

if hexAuthCode != c.Hash {
return ErrInvalidCreds
return ErrInvalidCredentials
}

return nil
Expand Down

0 comments on commit a0baeea

Please sign in to comment.