fmt
This commit is contained in:
parent
d002be5074
commit
46bd8fb68a
@ -59,7 +59,7 @@ type response struct {
|
||||
Props []props `xml:"DAV: propstat"`
|
||||
}
|
||||
|
||||
func getProps(r *response, status string) (*props) {
|
||||
func getProps(r *response, status string) *props {
|
||||
for _, prop := range r.Props {
|
||||
if strings.Index(prop.Status, status) != -1 {
|
||||
return &prop
|
||||
|
@ -13,6 +13,6 @@ func TestJoin(t *testing.T) {
|
||||
func eq(t *testing.T, expected string, s0 string, s1 string) {
|
||||
s := Join(s0, s1)
|
||||
if s != expected {
|
||||
t.Error("For", "'"+s0+"','" + s1+"'", "expeted", "'"+ expected + "'", "got", "'"+s+"'")
|
||||
t.Error("For", "'"+s0+"','"+s1+"'", "expeted", "'"+expected+"'", "got", "'"+s+"'")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user