Satisfy linters

This commit is contained in:
9seconds
2018-07-10 09:59:30 +03:00
parent 0b555c4deb
commit 31f71b0e12
+1 -3
View File
@@ -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")
}