Przeglądaj źródła

fix static assets (#3816)

im_zhou 1 rok temu
rodzic
commit
6d9e0c20f6
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      pkg/util/http/server.go

+ 1 - 3
pkg/util/http/server.go

@@ -46,9 +46,7 @@ type Server struct {
 }
 
 func NewServer(cfg v1.WebServerConfig) (*Server, error) {
-	if cfg.AssetsDir != "" {
-		assets.Load(cfg.AssetsDir)
-	}
+	assets.Load(cfg.AssetsDir)
 
 	addr := net.JoinHostPort(cfg.Addr, strconv.Itoa(cfg.Port))
 	if addr == ":" {