gofmt
This commit is contained in:
parent
50b368320a
commit
c6ae207c9b
|
@ -6,8 +6,8 @@ import (
|
|||
"git.mowie.cc/konrad/Library/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"strings"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type authorPayload struct {
|
||||
|
@ -41,7 +41,7 @@ func AuthorAddOrUpdate(c echo.Context) error {
|
|||
if datAuthor.Lastname == "" && datAuthor.Forename == "" {
|
||||
return c.JSON(http.StatusBadRequest, models.Message{"Please provide at least one name."})
|
||||
}
|
||||
|
||||
|
||||
// Check if we have an ID other than the one in the struct
|
||||
id := c.Param("id")
|
||||
if id != "" {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"git.mowie.cc/konrad/Library/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"strings"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type bookPayload struct {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"git.mowie.cc/konrad/Library/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"strings"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type publisherPayload struct {
|
||||
|
@ -37,7 +37,6 @@ func PublisherAddOrUpdate(c echo.Context) error {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// Check if we have an ID other than the one in the struct
|
||||
id := c.Param("id")
|
||||
if id != "" {
|
||||
|
|
Loading…
Reference in New Issue