This commit is contained in:
Christoph Polcin 2014-10-23 11:28:46 +02:00
parent d002be5074
commit 46bd8fb68a
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ type response struct {
Props []props `xml:"DAV: propstat"` Props []props `xml:"DAV: propstat"`
} }
func getProps(r *response, status string) (*props) { func getProps(r *response, status string) *props {
for _, prop := range r.Props { for _, prop := range r.Props {
if strings.Index(prop.Status, status) != -1 { if strings.Index(prop.Status, status) != -1 {
return &prop return &prop

View File

@ -13,6 +13,6 @@ func TestJoin(t *testing.T) {
func eq(t *testing.T, expected string, s0 string, s1 string) { func eq(t *testing.T, expected string, s0 string, s1 string) {
s := Join(s0, s1) s := Join(s0, s1)
if s != expected { if s != expected {
t.Error("For", "'"+s0+"','" + s1+"'", "expeted", "'"+ expected + "'", "got", "'"+s+"'") t.Error("For", "'"+s0+"','"+s1+"'", "expeted", "'"+expected+"'", "got", "'"+s+"'")
} }
} }