summaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-02-12 10:15:47 -0500
committerJosh Frye <joshfng@gmail.com>2016-02-12 10:15:47 -0500
commitd3ca5accfd418d789765284542334411337fa45f (patch)
treeda47ca797b709cec053de15d3245a2c4871ddc81 /routers/install.go
parent8ab5399e830c425e611e5b24ef2edefefa587455 (diff)
downloadgitea-d3ca5accfd418d789765284542334411337fa45f.tar.gz
gitea-d3ca5accfd418d789765284542334411337fa45f.zip
Remove redundant nil check.
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/routers/install.go b/routers/install.go
index 668912960c..b8b7dec1e7 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -242,16 +242,6 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) {
return
}
- // Set default log path if empty.
- workDir, err := setting.WorkDir()
- if err != nil {
- log.Fatal(4, "Fail to get work directory: %v", err)
- }
-
- if len(form.LogRootPath) == 0 {
- form.LogRootPath = path.Join(workDir, "log")
- }
-
// Test log root path.
form.LogRootPath = strings.Replace(form.LogRootPath, "\\", "/", -1)
if err := os.MkdirAll(form.LogRootPath, os.ModePerm); err != nil {