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

@@ -42,7 +42,7 @@ func indexGet(ec echo.Context) error {
// We should check if database connection available.
dbConn := c.Database.GetDatabaseConnection()
if c.Config.Database.Type != "flatfiles" && dbConn == nil {
ec.Redirect(http.StatusFound, "/database_not_available")
return ec.Redirect(http.StatusFound, "/database_not_available")
}
// Generate list of available languages to highlight.