A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
remove some unnecessary files
mingchengae0bdb2bd918
diff --git a/internal/router/ui.go b/internal/router/ui.goindex ff4d23ba..bbb48e55 100644--- a/internal/router/ui.go+++ b/internal/router/ui.go@@ -38,10 +38,11 @@ func (r *_resource) Open(name string) (fs.File, error) {// Register a new static resource which generated by ui directoryfunc (a *UIRouter) Register(r *gin.Engine) {staticPath := os.Getenv("ANSWER_STATIC_PATH")- info, err := os.Stat(staticPath)// if ANSWER_STATIC_PATH is set and not empty, ignore embed resourceif staticPath != "" {+ info, err := os.Stat(staticPath)+if err != nil || !info.IsDir() {log.Error(err)} else {