mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-12 13:46:51 +00:00
fix linter
This commit is contained in:
parent
701a32671a
commit
6fbac3ec39
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ func handleSync(bs *booking.Service) echo.HandlerFunc {
|
||||||
bookingInfo := new(BookingInfo)
|
bookingInfo := new(BookingInfo)
|
||||||
err = json.Unmarshal(body, bookingInfo)
|
err = json.Unmarshal(body, bookingInfo)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return c.String(http.StatusInternalServerError, fmt.Sprintf("error unmarshalling JSON: %w", err))
|
return c.String(http.StatusInternalServerError, fmt.Sprintf("error unmarshalling JSON: %s", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
b, err := bs.ParseFromApi(bookingInfo.Content)
|
b, err := bs.ParseFromApi(bookingInfo.Content)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue