From d17f8538b2e6e52165c37927cbdaa35a6547a266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 13 Sep 2015 15:23:12 +0200 Subject: [PATCH] fix(backend): made public_gen detection more bullet proof, #2731 --- pkg/setting/setting.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go index b706d5a0957..23a6273a24b 100644 --- a/pkg/setting/setting.go +++ b/pkg/setting/setting.go @@ -363,10 +363,6 @@ func validateStaticRootPath() error { return nil } - if _, err := os.Stat(path.Join(StaticRootPath, "css")); err == nil { - return nil - } - if _, err := os.Stat(StaticRootPath + "_gen/css"); err == nil { StaticRootPath = StaticRootPath + "_gen" return nil