fix(backend): made public_gen detection more bullet proof, #2731

This commit is contained in:
Torkel Ödegaard 2015-09-13 15:23:12 +02:00
parent 1900c81d9f
commit d17f8538b2

View File

@ -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