all: const instead of var for errors

This commit is contained in:
Aleksandr Razumov
2017-02-04 20:53:33 -08:00
parent a65bb247e9
commit 3ec51bf758
2 changed files with 2 additions and 2 deletions

View File

@@ -405,7 +405,7 @@ func (m *Message) GetErrorCode() (int, []byte, error) {
return code, reason, nil
}
var (
const (
// ErrAttributeNotFound means that there is no such attribute.
ErrAttributeNotFound Error = "Attribute not found"

View File

@@ -321,7 +321,7 @@ func IsMessage(b []byte) bool {
binary.BigEndian.Uint32(b[4:8]) == magicCookie
}
var (
const (
// ErrUnexpectedHeaderEOF means that there were not enough bytes in
// m.Raw to read header.
ErrUnexpectedHeaderEOF Error = "unexpected EOF: not enough bytes to read header"