Fix unnecessary type conversions (#12927)

Этот коммит содержится в:
Ben Schumacher
2019-10-28 10:57:21 +01:00
коммит произвёл GitHub
родитель 3701a393e5
Коммит 8a72ed2833
11 изменённых файлов: 65 добавлений и 66 удалений

Просмотреть файл

@@ -284,7 +284,7 @@ func DecodeAndVerifyTriggerId(triggerId string, s *ecdsa.PrivateKey) (string, st
R, S *big.Int
}
if _, err := asn1.Unmarshal([]byte(signature), &esig); err != nil {
if _, err := asn1.Unmarshal(signature, &esig); err != nil {
return "", "", NewAppError("DecodeAndVerifyTriggerId", "interactive_message.decode_trigger_id.signature_decode_failed", nil, err.Error(), http.StatusBadRequest)
}