mirror of
https://github.com/gogs/gogs.git
synced 2026-02-27 08:40:54 +01:00
style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in 4616bd6 according to the output
from Go fmt and Gofumpt.
Details: https://github.com/gogs/gogs/pull/8150
This commit is contained in:
committed by
GitHub
parent
4616bd64dd
commit
f5daceef55
@@ -163,7 +163,7 @@ func newMacaron() *macaron.Macaron {
|
||||
|
||||
func runWeb(c *cli.Context) error {
|
||||
var localPg *embeddedpg.LocalPostgres
|
||||
|
||||
|
||||
if c.Bool("embedded-postgres") {
|
||||
localPg = embeddedpg.Initialize(conf.WorkDir())
|
||||
if err := localPg.Launch(); err != nil {
|
||||
@@ -176,7 +176,7 @@ func runWeb(c *cli.Context) error {
|
||||
}()
|
||||
localPg.ConfigureGlobalDatabase()
|
||||
}
|
||||
|
||||
|
||||
err := route.GlobalInit(c.String("config"))
|
||||
if err != nil {
|
||||
log.Fatal("Failed to initialize application: %v", err)
|
||||
|
||||
@@ -39,7 +39,7 @@ func Initialize(workDir string) *LocalPostgres {
|
||||
func (pg *LocalPostgres) Launch() error {
|
||||
log.Info("Launching local PostgreSQL server...")
|
||||
|
||||
if err := os.MkdirAll(pg.baseDir, 0700); err != nil {
|
||||
if err := os.MkdirAll(pg.baseDir, 0o700); err != nil {
|
||||
return errors.Wrap(err, "mkdir local postgres base")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user