From 281e9c1cd029511d7671fec540f497b84fbf4cdc Mon Sep 17 00:00:00 2001 From: konrad Date: Wed, 11 Jul 2018 02:40:29 +0200 Subject: [PATCH] fmt --- models/lists.go | 2 +- routes/api/v1/list_item_add_update.go | 2 +- routes/crud/create.go | 2 +- routes/crud/update.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/models/lists.go b/models/lists.go index c39e18e8fff..240bf113314 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 93d3537753c..6e490e7c065 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 6881d0ce0dd..39e5202426f 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 8c31fc8378b..282013ae5ad 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