diff options
author | Josh Frye <joshfng@gmail.com> | 2016-02-12 10:15:47 -0500 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-02-12 10:15:47 -0500 |
commit | d3ca5accfd418d789765284542334411337fa45f (patch) | |
tree | da47ca797b709cec053de15d3245a2c4871ddc81 /routers/install.go | |
parent | 8ab5399e830c425e611e5b24ef2edefefa587455 (diff) | |
download | gitea-d3ca5accfd418d789765284542334411337fa45f.tar.gz gitea-d3ca5accfd418d789765284542334411337fa45f.zip |
Remove redundant nil check.
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 10 |
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 { |