Linting things.

This commit is contained in:
2019-10-13 16:26:52 +05:00
parent cdc8ecf49b
commit 6a787e7e23
13 changed files with 19 additions and 25 deletions

View File

@@ -32,7 +32,7 @@ import (
// local
"go.dev.pztrn.name/fastpastebin/internal/config"
"go.dev.pztrn.name/fastpastebin/internal/database/interface"
databaseinterface "go.dev.pztrn.name/fastpastebin/internal/database/interface"
// other
"github.com/labstack/echo"
@@ -60,7 +60,7 @@ func (c *Context) Initialize() {
c.Flagger = flagger.New("fastpastebin", nil)
c.Flagger.Initialize()
c.Flagger.AddFlag(&flagger.Flag{
_ = c.Flagger.AddFlag(&flagger.Flag{
Name: "config",
Description: "Configuration file path. Can be overridded with FASTPASTEBIN_CONFIG environment variable (this is what used in tests).",
Type: "string",

View File

@@ -40,8 +40,7 @@ func (c *Context) echoReqLogger() echo.MiddlewareFunc {
Str("UA", ec.Request().UserAgent()).
Msg("HTTP request")
next(ec)
return nil
return next(ec)
}
}
}