mirror of https://github.com/status-im/consul.git
Fix formatting
This commit is contained in:
parent
c3db65a7d8
commit
03273e4ed2
|
@ -1728,9 +1728,6 @@ func validateMetaPair(key, value string) error {
|
|||
if len(key) > metaKeyMaxLength {
|
||||
return fmt.Errorf("Key is longer than %d chars", metaKeyMaxLength)
|
||||
}
|
||||
if strings.Contains(key, ":") {
|
||||
return fmt.Errorf("Key contains ':' character")
|
||||
}
|
||||
if strings.HasPrefix(key, metaKeyReservedPrefix) {
|
||||
return fmt.Errorf("Key prefix '%s' is reserved for internal use", metaKeyReservedPrefix)
|
||||
}
|
||||
|
|
|
@ -1901,8 +1901,6 @@ func TestAgent_validateMetaPair(t *testing.T) {
|
|||
{"", "value", false},
|
||||
// allowed special chars in key name
|
||||
{"k_e-y", "value", true},
|
||||
// ':' in key name
|
||||
{"k:ey", "value", false},
|
||||
// disallowed special chars in key name
|
||||
{"(%key&)", "value", false},
|
||||
// key too long
|
||||
|
|
Loading…
Reference in New Issue