mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-23 00:34:23 +00:00
carddav: remove filter.MarshalText
This isn't necessary, we can just straight up let encoding/xml use the string.
This commit is contained in:
parent
94f47fa001
commit
38b729ad9c
@ -76,10 +76,6 @@ const (
|
|||||||
filterAllOf filterTest = "allof"
|
filterAllOf filterTest = "allof"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (ft filterTest) MarshalText() ([]byte, error) {
|
|
||||||
return []byte(ft), nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (ft *filterTest) UnmarshalText(b []byte) error {
|
func (ft *filterTest) UnmarshalText(b []byte) error {
|
||||||
v := filterTest(string(b))
|
v := filterTest(string(b))
|
||||||
switch v {
|
switch v {
|
||||||
|
Loading…
Reference in New Issue
Block a user