diff --git a/models/lists.go b/models/lists.go index c39e18e8f..240bf1133 100644 --- a/models/lists.go +++ b/models/lists.go @@ -119,4 +119,4 @@ func (l *List) CanWrite(user *User) bool { // TODO return false -} \ No newline at end of file +} diff --git a/routes/api/v1/list_item_add_update.go b/routes/api/v1/list_item_add_update.go index 93d353775..6e490e7c0 100644 --- a/routes/api/v1/list_item_add_update.go +++ b/routes/api/v1/list_item_add_update.go @@ -63,4 +63,4 @@ func UpdateListItem(c echo.Context) error { // "$ref": "#/responses/Message" return echo.NewHTTPError(http.StatusNotImplemented) -} \ No newline at end of file +} diff --git a/routes/crud/create.go b/routes/crud/create.go index 6881d0ce0..39e520242 100644 --- a/routes/crud/create.go +++ b/routes/crud/create.go @@ -20,7 +20,7 @@ func (c *WebHandler) CreateWeb(ctx echo.Context) error { } // Get an ID if we have one - var id int64 = 0 + var id int64 if ctx.Param("id") != "" { id, err = models.GetIntURLParam("id", ctx) if err != nil { diff --git a/routes/crud/update.go b/routes/crud/update.go index 8c31fc837..282013ae5 100644 --- a/routes/crud/update.go +++ b/routes/crud/update.go @@ -1,10 +1,10 @@ package crud import ( + "fmt" "git.kolaente.de/konrad/list/models" "github.com/labstack/echo" "net/http" - "fmt" ) // UpdateWeb is the webhandler to update an object