mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-20 08:04:28 +01:00
beautified code with gofmt
This commit is contained in:
@@ -15,8 +15,8 @@ import (
|
|||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/bbernhard/signal-cli-rest-api/client"
|
"github.com/bbernhard/signal-cli-rest-api/client"
|
||||||
utils "github.com/bbernhard/signal-cli-rest-api/utils"
|
|
||||||
ds "github.com/bbernhard/signal-cli-rest-api/datastructs"
|
ds "github.com/bbernhard/signal-cli-rest-api/datastructs"
|
||||||
|
utils "github.com/bbernhard/signal-cli-rest-api/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -1479,7 +1479,6 @@ func (a *Api) RemoveReaction(c *gin.Context) {
|
|||||||
c.Status(http.StatusNoContent)
|
c.Status(http.StatusNoContent)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// @Summary Send a receipt.
|
// @Summary Send a receipt.
|
||||||
// @Tags Receipts
|
// @Tags Receipts
|
||||||
// @Description Send a read or viewed receipt
|
// @Description Send a read or viewed receipt
|
||||||
@@ -1962,7 +1961,6 @@ func (a *Api) AddStickerPack(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
err = a.signalClient.AddStickerPack(number, req.PackId, req.PackKey)
|
err = a.signalClient.AddStickerPack(number, req.PackId, req.PackKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.JSON(400, Error{Msg: err.Error()})
|
c.JSON(400, Error{Msg: err.Error()})
|
||||||
|
|||||||
Reference in New Issue
Block a user