mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 15:24:01 +03:00
Satisfy linters
This commit is contained in:
+1
-3
@@ -91,9 +91,7 @@ func NewConfig(debug, verbose bool, // nolint: gocyclo
|
||||
publicIPv6 net.IP, publicIPv6Port uint16,
|
||||
statsIP net.IP, statsPort uint16,
|
||||
secret, adtag string) (*Config, error) {
|
||||
if strings.HasPrefix(secret, "dd") {
|
||||
secret = secret[2:]
|
||||
}
|
||||
secret = strings.TrimPrefix(secret, "dd")
|
||||
if len(secret) != 32 {
|
||||
return nil, errors.New("Telegram demands secret of length 32")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user