plugins/{carddav,caldav}: remove unused conversion
This commit is contained in:
parent
1d070b1a62
commit
477bfd69a6
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ func parseObjectPath(s string) (string, error) {
|
||||||
err = fmt.Errorf("failed to parse path: %v", err)
|
err = fmt.Errorf("failed to parse path: %v", err)
|
||||||
return "", echo.NewHTTPError(http.StatusBadRequest, err)
|
return "", echo.NewHTTPError(http.StatusBadRequest, err)
|
||||||
}
|
}
|
||||||
return string(p), nil
|
return p, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseTime(dateStr, timeStr string) (time.Time, error) {
|
func parseTime(dateStr, timeStr string) (time.Time, error) {
|
||||||
|
|
|
@ -40,7 +40,7 @@ func parseObjectPath(s string) (string, error) {
|
||||||
err = fmt.Errorf("failed to parse path: %v", err)
|
err = fmt.Errorf("failed to parse path: %v", err)
|
||||||
return "", echo.NewHTTPError(http.StatusBadRequest, err)
|
return "", echo.NewHTTPError(http.StatusBadRequest, err)
|
||||||
}
|
}
|
||||||
return string(p), nil
|
return p, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func registerRoutes(p *plugin) {
|
func registerRoutes(p *plugin) {
|
||||||
|
|
Loading…
Reference in a new issue