plugins/{carddav,caldav}: remove unused conversion

This commit is contained in:
Gusted 2021-08-04 03:20:41 +02:00 committed by Simon Ser
parent 1d070b1a62
commit 477bfd69a6
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ func parseObjectPath(s string) (string, error) {
err = fmt.Errorf("failed to parse path: %v", err)
return "", echo.NewHTTPError(http.StatusBadRequest, err)
}
return string(p), nil
return p, nil
}
func parseTime(dateStr, timeStr string) (time.Time, error) {

View file

@ -40,7 +40,7 @@ func parseObjectPath(s string) (string, error) {
err = fmt.Errorf("failed to parse path: %v", err)
return "", echo.NewHTTPError(http.StatusBadRequest, err)
}
return string(p), nil
return p, nil
}
func registerRoutes(p *plugin) {