app/vmalert/utils/links.go: document Prefix function, which has been added in b29fafa86b

This commit is contained in:
Aliaksandr Valialkin 2022-07-08 13:25:23 +03:00
parent 2e9ae40d56
commit 338fd115d9
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -4,6 +4,7 @@ import "strings"
const prefix = "/vmalert/"
// Prefix returns "/vmalert/" prefix if it is missing in the path.
func Prefix(path string) string {
if strings.HasPrefix(path, prefix) {
return ""