mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 21:04:02 +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,
|
publicIPv6 net.IP, publicIPv6Port uint16,
|
||||||
statsIP net.IP, statsPort uint16,
|
statsIP net.IP, statsPort uint16,
|
||||||
secret, adtag string) (*Config, error) {
|
secret, adtag string) (*Config, error) {
|
||||||
if strings.HasPrefix(secret, "dd") {
|
secret = strings.TrimPrefix(secret, "dd")
|
||||||
secret = secret[2:]
|
|
||||||
}
|
|
||||||
if len(secret) != 32 {
|
if len(secret) != 32 {
|
||||||
return nil, errors.New("Telegram demands secret of length 32")
|
return nil, errors.New("Telegram demands secret of length 32")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user