Cleanup: use the local variable (#20767)

Signed-off-by: huanggze <loganhuang@yunify.com>
pull/20776/head
Guangzhe Huang 6 years ago committed by Torkel Ödegaard
parent f2574f4944
commit 71792d698b
  1. 2
      pkg/api/http_server.go

@ -285,7 +285,7 @@ func (hs *HTTPServer) addMiddlewaresAndStaticRoutes() {
for _, route := range plugins.StaticRoutes {
pluginRoute := path.Join("/public/plugins/", route.PluginId)
hs.log.Debug("Plugins: Adding route", "route", pluginRoute, "dir", route.Directory)
hs.mapStatic(hs.macaron, route.Directory, "", pluginRoute)
hs.mapStatic(m, route.Directory, "", pluginRoute)
}
hs.mapStatic(m, setting.StaticRootPath, "build", "public/build")

Loading…
Cancel
Save