Make linter happy and move to os from io/ioutil for reading/writing.
continuous-integration/drone/push Build is passing

This commit is contained in:
pztrn committed 2022-08-14 15:49:05 +05:00
1 parent df5671586e
commit 2ec0e28243
28 files changed
+99 -99

No files matched your search

+2 -2
View File
@@ -39,7 +39,7 @@ func indexGet(ectx echo.Context) error {
// We should check if database connection available.
dbConn := ctx.Database.GetDatabaseConnection()
if ctx.Config.Database.Type != flatfiles.FlatFileDialect && dbConn == nil {
// nolint:wrapcheck
//nolint:wrapcheck
return ectx.Redirect(http.StatusFound, "/database_not_available")
}
@@ -56,6 +56,6 @@ func indexGet(ectx echo.Context) error {
htmlData := templater.GetTemplate(ectx, "index.html", map[string]string{"lexers": availableLexersSelectOpts, "captchaString": captchaString})
// nolint:wrapcheck
//nolint:wrapcheck
return ectx.HTML(http.StatusOK, htmlData)
}