lint
This commit is contained in:
+1
-1
@@ -265,7 +265,7 @@ func (hs *HTTPServer) getPluginAssets(c *models.ReqContext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// prepend slash for cleaning relative paths
|
// prepend slash for cleaning relative paths
|
||||||
requestedFile := filepath.Clean(filepath.Join("/",macaron.Params(c.Req)["*"]))
|
requestedFile := filepath.Clean(filepath.Join("/", macaron.Params(c.Req)["*"]))
|
||||||
rel, err := filepath.Rel("/", requestedFile)
|
rel, err := filepath.Rel("/", requestedFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// slash is prepended above therefore this is not expected to fail
|
// slash is prepended above therefore this is not expected to fail
|
||||||
|
|||||||
Reference in New Issue
Block a user