mirror of
https://github.com/pion/stun.git
synced 2025-10-30 02:31:48 +08:00
all: const instead of var for errors
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user